Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754416Ab0LOVlM (ORCPT ); Wed, 15 Dec 2010 16:41:12 -0500 Received: from mail.vyatta.com ([76.74.103.46]:56648 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752948Ab0LOVlJ (ORCPT ); Wed, 15 Dec 2010 16:41:09 -0500 Date: Wed, 15 Dec 2010 13:41:07 -0800 From: Stephen Hemminger To: Niranjana Vishwanathapura Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Brian Swetland Subject: Re: [PATCH] msm: rmnet: msm rmnet smd virtual ethernet driver Message-ID: <20101215134107.0354c0c3@nehalam> In-Reply-To: <1292437866-11652-1-git-send-email-nvishwan@codeaurora.org> References: <1292437866-11652-1-git-send-email-nvishwan@codeaurora.org> Organization: Vyatta X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.0; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 570 Lines: 18 On Wed, 15 Dec 2010 10:31:06 -0800 Niranjana Vishwanathapura 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/