[PATCH] msm: rmnet: msm rmnet smd virtual ethernet driver

Stephen Hemminger shemminger at vyatta.com
Wed Dec 15 16:41:07 EST 2010


On Wed, 15 Dec 2010 10:31:06 -0800
Niranjana Vishwanathapura <nvishwan at codeaurora.org> wrote:

> +static struct net_device_stats *rmnet_get_stats(struct net_device *dev)
> +{
> +	struct rmnet_private *p = netdev_priv(dev);
> +	return &p->stats;
> +}
> +

Just use dev->stats and this function would no longer be needed.

-- 



More information about the linux-arm-kernel mailing list