From patchwork Tue Aug 24 15:18:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Dumazet X-Patchwork-Id: 62604 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id F23A8B70CC for ; Wed, 25 Aug 2010 01:18:40 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755329Ab0HXPSa (ORCPT ); Tue, 24 Aug 2010 11:18:30 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:45024 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752185Ab0HXPS2 (ORCPT ); Tue, 24 Aug 2010 11:18:28 -0400 Received: by wwe15 with SMTP id 15so2027799wwe.1 for ; Tue, 24 Aug 2010 08:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=DfyhOOi7/rILHwk+WVvlXDdzW/kpRRtzEptA2vZd18g=; b=vuOsHANIjMkbC8AnsZ6fR6BPzfTAsZJ1pVqJXG3D+8AmEEm0J1P/7A04Yp2athGfzv 5w3suDGWwTKS5u7C/J1XruAi8IffV6JCi6gUusUfc2U+KLytCd1DvGhg3LGQmoIU2LOB XGfCNEjFh4MMiAmqWlJzebKiTd4UL3qIkFhqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=q/P+/0eXtZAy14prTESyh4By6r24fpo0Ezmy/2jkA1ODJ7DhkENv8GuFG+6utJvb6p 4507lLg3KKF8pX5fZ/iAQzpOJyU5/Hh8Kk73XzHk2YlDYYSjfepuFlzKsY6rG3aORpiI ItKasakLZdA7zhyPBq0tupk+I3SmeDhLZeGJ4= Received: by 10.216.0.76 with SMTP id 54mr922866wea.38.1282663106885; Tue, 24 Aug 2010 08:18:26 -0700 (PDT) Received: from [127.0.0.1] ([85.17.35.125]) by mx.google.com with ESMTPS id c21sm140087wea.47.2010.08.24.08.18.24 (version=SSLv3 cipher=RC4-MD5); Tue, 24 Aug 2010 08:18:25 -0700 (PDT) Subject: [PATCH net-next-2.6] be2net: get rid of be_get_stats() From: Eric Dumazet To: David Miller Cc: netdev , Somnath K , Ajit Khaparde Date: Tue, 24 Aug 2010 17:18:22 +0200 Message-ID: <1282663102.2477.253.camel@edumazet-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org drivers can avoid implementing ndo_get_stats method if using netdevice stats structure. Signed-off-by: Eric Dumazet --- drivers/net/benet/be_main.c | 6 ------ 1 file changed, 6 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 74e146f..b89bae0 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c @@ -365,11 +365,6 @@ static void be_rx_eqd_update(struct be_adapter *adapter) rx_eq->cur_eqd = eqd; } -static struct net_device_stats *be_get_stats(struct net_device *dev) -{ - return &dev->stats; -} - static u32 be_calc_rate(u64 bytes, unsigned long ticks) { u64 rate = bytes; @@ -2399,7 +2394,6 @@ static struct net_device_ops be_netdev_ops = { .ndo_open = be_open, .ndo_stop = be_close, .ndo_start_xmit = be_xmit, - .ndo_get_stats = be_get_stats, .ndo_set_rx_mode = be_set_multicast_list, .ndo_set_mac_address = be_mac_addr_set, .ndo_change_mtu = be_change_mtu,