aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-04-25 15:45:55 +0300
committerJohn W. Linville <linville@tuxdriver.com>2012-04-27 16:07:23 -0400
commit4db334cf9ec2cbbf129765e9370755ea9a51b6f6 (patch)
tree50262669232522156651117d308d12bdf6a660cd
parent607a43cb2cd8c365eaaef49457dbf2c5c6a99180 (diff)
downloadiwlwifi-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.c3
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;
}