Explorar o código

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>
Eliad Peller %!s(int64=10) %!d(string=hai) anos
pai
achega
ff5db4392c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/mac80211/scan.c

+ 1 - 1
net/mac80211/scan.c

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