projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b4aa3c
)
ipv6: Don't recompute net in ip6_rcv
author
Eric W. Biederman
<ebiederm@xmission.com>
Wed, 16 Sep 2015 01:04:08 +0000
(20:04 -0500)
committer
David S. Miller
<davem@davemloft.net>
Fri, 18 Sep 2015 00:18:35 +0000
(17:18 -0700)
Avoid silly redundant code
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_input.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/ip6_input.c
b/net/ipv6/ip6_input.c
index adba03ac7ce9671f6dba419d163672b9520743bd..c628dba477d40010da9553ce9aef6825fdf8cfdb 100644
(file)
--- a/
net/ipv6/ip6_input.c
+++ b/
net/ipv6/ip6_input.c
@@
-109,7
+109,7
@@
int ipv6_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt
if (hdr->version != 6)
goto err;
- IP6_ADD_STATS_BH(
dev_net(dev)
, idev,
+ IP6_ADD_STATS_BH(
net
, idev,
IPSTATS_MIB_NOECTPKTS +
(ipv6_get_dsfield(hdr) & INET_ECN_MASK),
max_t(unsigned short, 1, skb_shinfo(skb)->gso_segs));