]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cfg80211: Remove compile warnings
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Wed, 25 Apr 2012 12:45:55 +0000 (15:45 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Apr 2012 20:07:23 +0000 (16:07 -0400)
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>
net/wireless/util.c

index ffced852284d46c8b69cd72a147cccc715888289..d7e17de19bb3523ce60c0da0384c83a74d52ce7e 100644 (file)
@@ -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;
                }