diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-04-25 15:45:55 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-27 16:07:23 -0400 |
commit | 4db334cf9ec2cbbf129765e9370755ea9a51b6f6 (patch) | |
tree | 50262669232522156651117d308d12bdf6a660cd | |
parent | 607a43cb2cd8c365eaaef49457dbf2c5c6a99180 (diff) | |
download | iwlwifi-4db334cf9ec2cbbf129765e9370755ea9a51b6f6.tar.gz |
cfg80211: Remove compile warnings
Use default key to handle similar iface types. This removes compile warnings:
net/wireless/util.c: In function ‘cfg80211_change_iface’:
net/wireless/util.c:846:3: warning: enumeration value ‘NL80211_IFTYPE_MAX’
not handled in switch [-Wswitch]
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/wireless/util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index ffced852284d46..d7e17de19bb352 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -862,8 +862,7 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev, case NL80211_IFTYPE_MONITOR: /* monitor can't bridge anyway */ break; - case NL80211_IFTYPE_UNSPECIFIED: - case NUM_NL80211_IFTYPES: + default: /* not happening */ break; } |