mac80211: remove duplicate code
authorEliad Peller <eliad@wizery.com>
Tue, 3 Dec 2013 13:02:15 +0000 (15:02 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 3 Dec 2013 13:25:46 +0000 (14:25 +0100)
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>
net/mac80211/scan.c

index c22cbb5..b12bb72 100644 (file)
@@ -785,14 +785,6 @@ void ieee80211_scan_work(struct work_struct *work)
                        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
         * without scheduling a new work