浏览代码

mac80211: remove duplicate code

The same code appears just a few lines below.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Eliad Peller 11 年之前
父节点
当前提交
de61b610de
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      net/mac80211/scan.c

+ 0 - 8
net/mac80211/scan.c

@@ -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