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>
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index af0d094..d23c8d9 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -799,7 +799,7 @@
if (!sdata || !local->scan_req)
goto out;
- if (local->scan_req && !local->scanning) {
+ if (!local->scanning) {
struct cfg80211_scan_request *req = local->scan_req;
int rc;