Add default case in switch statement
authorJoe Korty <joe.korty@ccur.com>
Wed, 25 May 2016 12:57:27 +0000 (17:57 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Sun, 17 Jul 2016 21:00:01 +0000 (14:00 -0700)
commit5f10794c3473643954f6eb5ca51547c9f3c658b6
treecff034a95b7ea0a8839b7a5aa67dc44e62fe0032
parent6cd46fb77863fc222600101535cfb7e778db1d35
Add default case in switch statement

Provide a reasonable default value
(ie, the original value) for smps_mode
when a new value is not being assigned.

This forces the value of 'changed' to be correct
when no attempt at changing is being done to
'smps_mode'.

net/mac80211/ht.c: In function
'ieee80211_ht_cap_ie_to_sta_ht_cap':
net/mac80211/ht.c:232:5: warning:
'smps_mode' may be used uninitialized in this
function [-Wmaybe-uninitialized]
if (smps_mode != sta->sta.smps_mode)

Bug 200187768

Change-Id: Ife7dbe09e911d801c4fc1e85c3f8ad40cd681c09
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Signed-off-by: Gaurav Singh <gaursingh@nvidia.com>
Reviewed-on: http://git-master/r/1163941
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
net/mac80211/ht.c