ppp_generic: Simplify tx_dropped stats
authorPaulius Zaleckas <paulius.zaleckas@teltonika.lt>
Mon, 23 Feb 2009 04:59:43 +0000 (04:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2009 07:02:55 +0000 (23:02 -0800)
Local variable dev = ppp->dev

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp_generic.c

index 81e7fcced4b98173ffeb74392f50f73593979dd8..ea8cdf8e4be8b6696e57d1404ca3a19725ee9396 100644 (file)
@@ -991,7 +991,7 @@ ppp_start_xmit(struct sk_buff *skb, struct net_device *dev)
 
  outf:
        kfree_skb(skb);
-       ++ppp->dev->stats.tx_dropped;
+       ++dev->stats.tx_dropped;
        return 0;
 }