Skip to content

Commit

Permalink
iwmc3200wifi: clarify potentially undefined operation in iwm_scan_ssids
Browse files Browse the repository at this point in the history
  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>
  • Loading branch information
John W. Linville committed Nov 18, 2010
1 parent 86107fd commit 8befba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwmc3200wifi/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8befba6

Please sign in to comment.