Commit de61b610 authored by Eliad Peller's avatar Eliad Peller Committed by Johannes Berg

mac80211: remove duplicate code

The same code appears just a few lines below.
Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 55f7435c
...@@ -785,14 +785,6 @@ void ieee80211_scan_work(struct work_struct *work) ...@@ -785,14 +785,6 @@ void ieee80211_scan_work(struct work_struct *work)
goto out; goto out;
} }
/*
* Avoid re-scheduling when the sdata is going away.
*/
if (!ieee80211_sdata_running(sdata)) {
aborted = true;
goto out_complete;
}
/* /*
* as long as no delay is required advance immediately * as long as no delay is required advance immediately
* without scheduling a new work * without scheduling a new work
......
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