]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: fix comparison of u32 variable with less than zero
authorColin Ian King <colin.king@canonical.com>
Mon, 1 Jul 2019 16:26:57 +0000 (17:26 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Jul 2019 16:34:19 +0000 (18:34 +0200)
commit056982fc83056f04d82718d5b2d946d3eb7c3ad9
tree145e4e286efca057ab02863ed0f8c6c68bee4891
parent57a909ec96b8742bde5419ffc2ba9f1da39ae7fc
iwlwifi: mvm: fix comparison of u32 variable with less than zero

The comparison of the u32 variable wgds_tbl_idx with less than zero is
always going to be false because it is unsigned.  Fix this by making
wgds_tbl_idx a plain signed int.

Addresses-Coverity: ("Unsigned compared against 0")
Fixes: a43bbe9d7ca6 ("iwlwifi: mvm: Add log information about SAR status")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c