Skip to content
Snippets Groups Projects
Commit d25d062f authored by zhong jiang's avatar zhong jiang Committed by Johannes Berg
Browse files

cfg80211: remove unnecessary null pointer check in cfg80211_netdev_notifier_call


The iterator in list_for_each_entry_safe is never null, therefore, remove
the redundant null pointer check.

Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 024926de
No related branches found
No related tags found
No related merge requests found
......@@ -1238,7 +1238,7 @@ static int cfg80211_netdev_notifier_call(struct notifier_block *nb,
list_for_each_entry_safe(pos, tmp,
&rdev->sched_scan_req_list, list) {
if (WARN_ON(pos && pos->dev == wdev->netdev))
if (WARN_ON(pos->dev == wdev->netdev))
cfg80211_stop_sched_scan_req(rdev, pos, false);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment