diff options
author | Eliad Peller <eliad@wizery.com> | 2014-11-12 03:08:29 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-11-19 12:45:48 -0500 |
commit | ff5db4392c75e005882dd93641b2caa436437dd6 (patch) | |
tree | cfbc9d266f50f95c5a4480a3cfdc2146a6728edf /net/mac80211 | |
parent | 8cd4d4563ef0a518002c4a8f47dd950afe386ea8 (diff) |
mac80211: remove redundant check
local->scan_req was tested in the previous line, so it
can't be NULL.
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index af0d094b2f2f..d23c8d90c3b4 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -799,7 +799,7 @@ void ieee80211_scan_work(struct work_struct *work) | |||
799 | if (!sdata || !local->scan_req) | 799 | if (!sdata || !local->scan_req) |
800 | goto out; | 800 | goto out; |
801 | 801 | ||
802 | if (local->scan_req && !local->scanning) { | 802 | if (!local->scanning) { |
803 | struct cfg80211_scan_request *req = local->scan_req; | 803 | struct cfg80211_scan_request *req = local->scan_req; |
804 | int rc; | 804 | int rc; |
805 | 805 | ||