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

From: Stephen Hemminger
Date: Wed Dec 15 2010 - 16:41:18 EST


On Wed, 15 Dec 2010 10:31:06 -0800
Niranjana Vishwanathapura <nvishwan@xxxxxxxxxxxxxx> 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.

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/