aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/mac80211/sta_info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index 137a192e64bc..c34a5f97abc7 100644
--- 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)
552int sta_info_insert_rcu(struct sta_info *sta) __acquires(RCU) 552int sta_info_insert_rcu(struct sta_info *sta) __acquires(RCU)
553{ 553{
554 struct ieee80211_local *local = sta->local; 554 struct ieee80211_local *local = sta->local;
555 int err = 0; 555 int err;
556 556
557 might_sleep(); 557 might_sleep();
558 558
@@ -570,7 +570,6 @@ int sta_info_insert_rcu(struct sta_info *sta) __acquires(RCU)
570 570
571 return 0; 571 return 0;
572 out_free: 572 out_free:
573 BUG_ON(!err);
574 sta_info_free(local, sta); 573 sta_info_free(local, sta);
575 return err; 574 return err;
576} 575}