iwlwifi: dbg: set debug descriptor to NULL outside of iwl_fw_free_dump_desc
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Fri, 24 Apr 2020 16:46:57 +0000 (19:46 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 8 May 2020 06:51:35 +0000 (09:51 +0300)
commit2abe24f9e15b2ccce471dd1996debdae6c84e64b
tree4e0ea341185be71acc9e34a9d18108fc63bf510b
parent45baf306b0a14bba59c1529add2ba7f8df48082e
iwlwifi: dbg: set debug descriptor to NULL outside of iwl_fw_free_dump_desc

To avoid static analysis warning and to make the flow more readable, set
the debug descriptor to NULL outside iwl_fw_free_dump_desc and only in
the required places.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200424194456.5d5c50750a52.I17e33fc268c2097b7c42877f86cef2aa163b913a@changeid
drivers/net/wireless/intel/iwlwifi/fw/dbg.c