diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-11-16 21:08:56 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-18 19:22:21 (GMT) |
commit | 8befba6f2262a6e31d6e3bcf7d07ff46da444ec0 (patch) | |
tree | f6a43cfb57439db47368bae77afb1c9770cf02ba /drivers/net/wireless/iwmc3200wifi | |
parent | 86107fd170bc379869250eb7e1bd393a3a70e8ae (diff) | |
download | linux-8befba6f2262a6e31d6e3bcf7d07ff46da444ec0.tar.xz |
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 <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/commands.c b/drivers/net/wireless/iwmc3200wifi/commands.c index 330c7d9..50dee6a 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; } |