projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
024926d
)
cfg80211: remove unnecessary null pointer check in cfg80211_netdev_notifier_call
author
zhong jiang
<zhongjiang@huawei.com>
Sat, 8 Sep 2018 11:21:28 +0000
(19:21 +0800)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 2 Oct 2018 07:56:29 +0000
(09:56 +0200)
The iterator in list_for_each_entry_safe is never null, therefore, remove
the redundant null pointer check.
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c
patch
|
blob
|
history
diff --git
a/net/wireless/core.c
b/net/wireless/core.c
index
a88551f
..
4d5215e
100644
(file)
--- a/
net/wireless/core.c
+++ b/
net/wireless/core.c
@@
-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);
}