lkml.org 
[lkml]   [2010]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] msm: rmnet: msm rmnet smd virtual ethernet driver
On Wed, 15 Dec 2010 10:31:06 -0800
Niranjana Vishwanathapura <nvishwan@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.

--


\
 
 \ /
  Last update: 2010-12-15 22:43    [W:0.208 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site