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:
398f382
)
ipv6: remove a useless NULL check
author
Amerigo Wang
<
[email protected]
>
Sun, 28 Oct 2012 17:43:53 +0000
(17:43 +0000)
committer
David S. Miller
<
[email protected]
>
Sat, 3 Nov 2012 18:50:15 +0000
(14:50 -0400)
In dev_forward_change(), it is useless to check if idev->dev
is NULL, it is always non-NULL here.
Reported-by: Fengguang Wu <
[email protected]
>
Cc: David S. Miller <
[email protected]
>
Signed-off-by: Cong Wang <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv6/addrconf.c
patch
|
blob
|
history
diff --git
a/net/ipv6/addrconf.c
b/net/ipv6/addrconf.c
index 387b813f227d576b8532b60ab2f564658770c10d..ced58e1d91b6593a4e6df6259b6c8c77127a7c60 100644
(file)
--- a/
net/ipv6/addrconf.c
+++ b/
net/ipv6/addrconf.c
@@
-607,7
+607,7
@@
static void dev_forward_change(struct inet6_dev *idev)
dev = idev->dev;
if (idev->cnf.forwarding)
dev_disable_lro(dev);
- if (dev
&& (dev->flags & IFF_MULTICAST)
) {
+ if (dev
->flags & IFF_MULTICAST
) {
if (idev->cnf.forwarding)
ipv6_dev_mc_inc(dev, &in6addr_linklocal_allrouters);
else