diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-03-26 22:10:02 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-08 11:06:24 +0200 |
commit | a23108248a9d41400e686becddb5584b3a3fec1e (patch) | |
tree | c47489b24ff68ce443ec5f6ecb1cb9326259d4a0 /net/mac80211 | |
parent | a1598383241a602123b0bcf1c5210dc9617f536f (diff) | |
download | blackbird-op-linux-a23108248a9d41400e686becddb5584b3a3fec1e.tar.gz blackbird-op-linux-a23108248a9d41400e686becddb5584b3a3fec1e.zip |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 8c9419595bc8..63b63675aa6d 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); } /* |