Commit 308f7fcf authored by Zhao, Gang's avatar Zhao, Gang Committed by Johannes Berg

mac80211: remove unnecessary BUG_ON()

The BUG_ON(!err) can't be triggered in the code path, so remove
Signed-off-by: default avatarZhao, Gang <>
Signed-off-by: default avatarJohannes Berg <>
parent 6b59db7d
......@@ -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;
......@@ -570,7 +570,6 @@ int sta_info_insert_rcu(struct sta_info *sta) __acquires(RCU)
return 0;
sta_info_free(local, sta);
return err;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment