diff mbox

mac80211: remove duplicate code

Message ID 1386075735-28589-1-git-send-email-emmanuel.grumbach@intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Emmanuel Grumbach Dec. 3, 2013, 1:02 p.m. UTC
From: Eliad Peller <eliad@wizery.com>

The same code appears just a few lines below.

Signed-off-by: Eliad Peller <eliad@wizery.com>
---
 net/mac80211/scan.c | 8 --------
 1 file changed, 8 deletions(-)

Comments

Johannes Berg Dec. 3, 2013, 1:26 p.m. UTC | #1
On Tue, 2013-12-03 at 15:02 +0200, Emmanuel Grumbach wrote:
> From: Eliad Peller <eliad@wizery.com>
> 
> The same code appears just a few lines below.

Applied.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index 5ad66a8..6a94d48 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
 	 */