projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a159838
)
mac80211: replace some dead code by a warning
author
Johannes Berg
<johannes.berg@intel.com>
Tue, 26 Mar 2013 21:10:02 +0000
(22:10 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Mon, 8 Apr 2013 09:06:24 +0000
(11:06 +0200)
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>
net/mac80211/iface.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/iface.c
b/net/mac80211/iface.c
index 8c9419595bc8f5ca4e369484ff958c7095572ac3..63b63675aa6dbb79b91d2d0b7f4e4961be8ea4ba 100644
(file)
--- 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);
}
/*