projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e3ac20
)
bridge: use hlist_entry_safe
author
YueHaibing
<
[email protected]
>
Thu, 26 Apr 2018 03:07:05 +0000
(11:07 +0800)
committer
David S. Miller
<
[email protected]
>
Fri, 27 Apr 2018 17:20:48 +0000
(13:20 -0400)
Use hlist_entry_safe() instead of open-coding it.
Signed-off-by: YueHaibing <
[email protected]
>
Reviewed-by: Nikolay Aleksandrov <
[email protected]
>
Reviewed-by: Stephen Hemminger <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/bridge/br_forward.c
patch
|
blob
|
history
diff --git
a/net/bridge/br_forward.c
b/net/bridge/br_forward.c
index b4eed113d2ec89181e1451244b3a42afeed0e2c8..7a7fd672ccf2a3efbaea2ef464b09db193476b27 100644
(file)
--- a/
net/bridge/br_forward.c
+++ b/
net/bridge/br_forward.c
@@
-274,8
+274,7
@@
void br_multicast_flood(struct net_bridge_mdb_entry *mdst,
struct net_bridge_port *port, *lport, *rport;
lport = p ? p->port : NULL;
- rport = rp ? hlist_entry(rp, struct net_bridge_port, rlist) :
- NULL;
+ rport = hlist_entry_safe(rp, struct net_bridge_port, rlist);
if ((unsigned long)lport > (unsigned long)rport) {
port = lport;