Skip to content

Commit

Permalink
mac80211: remove redundant check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eliad Peller authored and Johannes Berg committed Nov 19, 2014
1 parent 8cd4d45 commit ff5db43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ff5db43

Please sign in to comment.