From: John W. Linville Date: Tue, 16 Nov 2010 21:08:56 +0000 (-0500) Subject: iwmc3200wifi: clarify potentially undefined operation in iwm_scan_ssids X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8befba6f2262a6e31d6e3bcf7d07ff46da444ec0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git iwmc3200wifi: clarify potentially undefined operation in iwm_scan_ssids CC [M] drivers/net/wireless/iwmc3200wifi/commands.o drivers/net/wireless/iwmc3200wifi/commands.c: In function ‘iwm_scan_ssids’: drivers/net/wireless/iwmc3200wifi/commands.c:911:15: warning: operation on ‘iwm->scan_id’ may be undefined Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwmc3200wifi/commands.c b/drivers/net/wireless/iwmc3200wifi/commands.c index 330c7d9cf101..50dee6a0a5ca 100644 --- a/drivers/net/wireless/iwmc3200wifi/commands.c +++ b/drivers/net/wireless/iwmc3200wifi/commands.c @@ -908,7 +908,7 @@ int iwm_scan_ssids(struct iwm_priv *iwm, struct cfg80211_ssid *ssids, return ret; } - iwm->scan_id = iwm->scan_id++ % IWM_SCAN_ID_MAX; + iwm->scan_id = (iwm->scan_id + 1) % IWM_SCAN_ID_MAX; return 0; }