Patchwork pch_gbe: compilation warning in pch_gbe_setup_rctl() fixed

login
register
mail settings
Submitter Vasily Averin
Date Oct. 7, 2011, 7:59 a.m.
Message ID <1317974359-20548-1-git-send-email-vvs@parallels.com>
Download mbox | patch
Permalink /patch/118254/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Vasily Averin - Oct. 7, 2011, 7:59 a.m.
From: Vasily Averin <vvs@sw.ru>

compilation warning fixed
drivers/net/pch_gbe/pch_gbe_main.c: In function ‘pch_gbe_setup_rctl’:
drivers/net/pch_gbe/pch_gbe_main.c:701:21: warning: unused variable ‘netdev’

Signed-off-by: Vasily Averin <vvs@sw.ru>
---
 drivers/net/pch_gbe/pch_gbe_main.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/pch_gbe/pch_gbe_main.c b/drivers/net/pch_gbe/pch_gbe_main.c
index b8b4ba2..7659324 100644
--- a/drivers/net/pch_gbe/pch_gbe_main.c
+++ b/drivers/net/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;