]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: avoid using default in interface type switch
authorJohannes Berg <johannes.berg@intel.com>
Fri, 31 Oct 2014 13:16:12 +0000 (14:16 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 31 Oct 2014 13:19:19 +0000 (14:19 +0100)
commit021936baa7abf56b69af6806ec0063d800e3994d
tree6f797d624377a194d2a327f740b827898ce868d9
parent46c333d9db30b7029eb8da519a62cfefc6200ecc
cfg80211: avoid using default in interface type switch

Most code avoids having a default case in interface type switch
statements already, to make it easier to find places that need
to be extended. Change the code in the __cfg80211_leave() and
nl80211_key_allowed() functions to not have a default case.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c
net/wireless/nl80211.c