aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-03-26 22:10:02 +0100
committerJohannes Berg <johannes.berg@intel.com>2013-04-08 11:06:24 +0200
commita23108248a9d41400e686becddb5584b3a3fec1e (patch)
treec47489b24ff68ce443ec5f6ecb1cb9326259d4a0 /net/mac80211
parenta1598383241a602123b0bcf1c5210dc9617f536f (diff)
downloadkernel_goldelico_gta04-a23108248a9d41400e686becddb5584b3a3fec1e.zip
kernel_goldelico_gta04-a23108248a9d41400e686becddb5584b3a3fec1e.tar.gz
kernel_goldelico_gta04-a23108248a9d41400e686becddb5584b3a3fec1e.tar.bz2
mac80211: replace some dead code by a warning
Given the (nested) switch statements, this code can't be reached, so make it warn instead of manipulating the carrier state which seems purposeful. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/iface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 8c94195..63b6367 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -581,7 +581,8 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
case NL80211_IFTYPE_P2P_DEVICE:
break;
default:
- netif_carrier_on(dev);
+ /* not reached */
+ WARN_ON(1);
}
/*