Commit ff5db439 authored by Eliad Peller's avatar Eliad Peller Committed by Johannes Berg

mac80211: remove redundant check

local->scan_req was tested in the previous line, so it
can't be NULL.
Signed-off-by: default avatarEliad Peller <eliadx.peller@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 8cd4d456
...@@ -799,7 +799,7 @@ void ieee80211_scan_work(struct work_struct *work) ...@@ -799,7 +799,7 @@ void ieee80211_scan_work(struct work_struct *work)
if (!sdata || !local->scan_req) if (!sdata || !local->scan_req)
goto out; goto out;
if (local->scan_req && !local->scanning) { if (!local->scanning) {
struct cfg80211_scan_request *req = local->scan_req; struct cfg80211_scan_request *req = local->scan_req;
int rc; int rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment