diff options
author | Tom Rix <trix@redhat.com> | 2023-04-14 13:11:58 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-04-14 13:15:26 +0200 |
commit | 8ce437dd5b2e4adef13aa4ecce07392f9966b1ab (patch) | |
tree | 9090f9a1904743040b05253cd3ac32337534df4b /drivers/net/wireless/intel/iwlwifi/mvm/sf.c | |
parent | 11e94d2bcd88dea5d9ce99555b6b172f5232d3e2 (diff) | |
download | linux-8ce437dd5b2e4adef13aa4ecce07392f9966b1ab.tar.gz linux-8ce437dd5b2e4adef13aa4ecce07392f9966b1ab.tar.bz2 linux-8ce437dd5b2e4adef13aa4ecce07392f9966b1ab.zip |
wifi: iwlwifi: fw: move memset before early return
Clang static analysis reports this representative issue
dbg.c:1455:6: warning: Branch condition evaluates to
a garbage value
if (!rxf_data.size)
^~~~~~~~~~~~~~
This check depends on iwl_ini_get_rxf_data() to clear
rxf_data but the function can return early without
doing the clear. So move the memset before the early
return.
Fixes: cc9b6012d34b ("iwlwifi: yoyo: use hweight_long instead of bit manipulating")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230414130637.872a7175f1ff.I33802a77a91998276992b088fbe25f61c87c33ac@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/sf.c')
0 files changed, 0 insertions, 0 deletions