ipv4: Don't recompute net in ipmr_queue_xmit
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 16 Sep 2015 01:03:58 +0000 (20:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2015 00:18:33 +0000 (17:18 -0700)
Calling dev_net(dev) for is just silly.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c

index a0a5def920fc21dd46e5fa8d0fb7423a35875951..075bc695ae34c7a960894fee72ec46fb3416d725 100644 (file)
@@ -1745,7 +1745,7 @@ static void ipmr_queue_xmit(struct net *net, struct mr_table *mrt,
                 * to blackhole.
                 */
 
-               IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_FRAGFAILS);
+               IP_INC_STATS_BH(net, IPSTATS_MIB_FRAGFAILS);
                ip_rt_put(rt);
                goto out_free;
        }