Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8befba6f authored by John W. Linville's avatar John W. Linville
Browse files

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: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 86107fd1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}