projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86a1b9d
)
mac80211: simplify mesh code
author
Pavel Machek
<pavel@ucw.cz>
Thu, 4 Jun 2020 21:41:57 +0000
(23:41 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 25 Jun 2020 08:54:09 +0000
(10:54 +0200)
Doing mod_timer() conditionaly is easier than conditionally unlocking
and jumping around...
Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
Acked-by: Linus Lüssing <ll@simonwunderlich.de>
Link:
https://lore.kernel.org/r/20200604214157.GA9737@amd
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_hwmp.c
patch
|
blob
|
history
diff --git
a/net/mac80211/mesh_hwmp.c
b/net/mac80211/mesh_hwmp.c
index
aa51509
..
02cde0f
100644
(file)
--- a/
net/mac80211/mesh_hwmp.c
+++ b/
net/mac80211/mesh_hwmp.c
@@
-1105,11
+1105,8
@@
void mesh_path_start_discovery(struct ieee80211_sub_if_data *sdata)
ttl, lifetime, 0, ifmsh->preq_id++, sdata);
spin_lock_bh(&mpath->state_lock);
- if (mpath->flags & MESH_PATH_DELETED) {
- spin_unlock_bh(&mpath->state_lock);
- goto enddiscovery;
- }
- mod_timer(&mpath->timer, jiffies + mpath->discovery_timeout);
+ if (!(mpath->flags & MESH_PATH_DELETED))
+ mod_timer(&mpath->timer, jiffies + mpath->discovery_timeout);
spin_unlock_bh(&mpath->state_lock);
enddiscovery: