From: Eliad Peller Date: Tue, 3 Dec 2013 13:02:15 +0000 (+0200) Subject: mac80211: remove duplicate code X-Git-Tag: v3.14-rc1~94^2~3^2^2~216 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de61b610def5249a1295b1eac92f3ce2bfa76b9d;p=platform%2Fkernel%2Flinux-stable.git mac80211: remove duplicate code The same code appears just a few lines below. Signed-off-by: Eliad Peller Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index c22cbb5..b12bb72 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c @@ -786,14 +786,6 @@ void ieee80211_scan_work(struct work_struct *work) } /* - * 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 * without scheduling a new work */