WAN: convert drivers to use built-in netdev_stats
There is no point in using separate net_device_stats structs when the one in struct net_device is present. Compiles. Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
committed by
Jeff Garzik
parent
844290e560
commit
198191c4a7
@@ -252,8 +252,8 @@ static int cisco_rx(struct sk_buff *skb)
|
||||
dev_kfree_skb_any(skb);
|
||||
return NET_RX_DROP;
|
||||
|
||||
rx_error:
|
||||
dev_to_hdlc(dev)->stats.rx_errors++; /* Mark error */
|
||||
rx_error:
|
||||
dev->stats.rx_errors++; /* Mark error */
|
||||
dev_kfree_skb_any(skb);
|
||||
return NET_RX_DROP;
|
||||
}
|
||||
|
Reference in New Issue
Block a user