Patchwork pch_gbe: remove unused variable

login
register
mail settings
Submitter Jon Mason
Date Sept. 26, 2011, 7:37 p.m.
Message ID <1317065858-3201-1-git-send-email-jdmason@kudzu.us>
Download mbox | patch
Permalink /patch/116471/
State Accepted
Delegated to: David Miller
Headers show

Comments

Jon Mason - Sept. 26, 2011, 7:37 p.m.
netdev is unused in pch_gbe_setup_rctl.  Remove this declaration to
avoid a compiler warning.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
---
 .../net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c   |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
David Miller - Sept. 27, 2011, 4:50 a.m.
From: Jon Mason <jdmason@kudzu.us>
Date: Mon, 26 Sep 2011 14:37:38 -0500

> netdev is unused in pch_gbe_setup_rctl.  Remove this declaration to
> avoid a compiler warning.
> 
> Signed-off-by: Jon Mason <jdmason@kudzu.us>

Applied, thanks.
--
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

Patch

diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
index 35a7c21..5dc61b4 100644
--- a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
+++ b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
@@ -698,7 +698,6 @@  static void pch_gbe_configure_tx(struct pch_gbe_adapter *adapter)
  */
 static void pch_gbe_setup_rctl(struct pch_gbe_adapter *adapter)
 {
-	struct net_device *netdev = adapter->netdev;
 	struct pch_gbe_hw *hw = &adapter->hw;
 	u32 rx_mode, tcpip;