From mboxrd@z Thu Jan 1 00:00:00 1970 From: davem@davemloft.net (David Miller) Date: Thu, 19 Aug 2010 00:12:53 -0700 (PDT) Subject: [PATCH v4] ether1: Use net_device_stats from struct net_device In-Reply-To: <1282198504-4009-1-git-send-email-tklauser@distanz.ch> References: <1282061719-19645-1-git-send-email-tklauser@distanz.ch> <1282198504-4009-1-git-send-email-tklauser@distanz.ch> Message-ID: <20100819.001253.186326819.davem@davemloft.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org From: Tobias Klauser Date: Thu, 19 Aug 2010 08:15:04 +0200 > struct net_device has its own struct net_device_stats member, so use > this one instead of a private copy in the ether1_priv struct. As the new > ndo_get_stats function would just return dev->stats we can omit it. This > patch also removes an incorrect memset of the stats on open. > > Signed-off-by: Tobias Klauser Applied.