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:
6b59db7
)
mac80211: remove unnecessary BUG_ON()
author
Zhao, Gang
<gamerh2o@gmail.com>
Mon, 21 Apr 2014 04:53:00 +0000
(12:53 +0800)
committer
Johannes Berg
<johannes.berg@intel.com>
Fri, 25 Apr 2014 15:31:00 +0000
(17:31 +0200)
The BUG_ON(!err) can't be triggered in the code path, so remove
it.
Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/sta_info.c
b/net/mac80211/sta_info.c
index 137a192e64bc3c2aa61cc9c5912a89bd3008cbe3..c34a5f97abc74ff8791b20676130dd1ce5d55c0c 100644
(file)
--- a/
net/mac80211/sta_info.c
+++ b/
net/mac80211/sta_info.c
@@
-552,7
+552,7
@@
static int sta_info_insert_finish(struct sta_info *sta) __acquires(RCU)
int sta_info_insert_rcu(struct sta_info *sta) __acquires(RCU)
{
struct ieee80211_local *local = sta->local;
- int err
= 0
;
+ int err;
might_sleep();
@@
-570,7
+570,6
@@
int sta_info_insert_rcu(struct sta_info *sta) __acquires(RCU)
return 0;
out_free:
- BUG_ON(!err);
sta_info_free(local, sta);
return err;
}