ipv6: Don't recompute net in ip6_rcv
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 16 Sep 2015 01:04:08 +0000 (20:04 -0500)
committerDavid 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

index adba03ac7ce9671f6dba419d163672b9520743bd..c628dba477d40010da9553ce9aef6825fdf8cfdb 100644 (file)
@@ -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));
This page took 0.024636 seconds and 5 git commands to generate.