Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -799,7 +799,7 @@ void ieee80211_scan_work(struct work_struct *work)
	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;