netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pch_gbe: compilation warning in pch_gbe_setup_rctl() fixed
@ 2011-10-07  7:59 Vasily Averin
  2011-10-19  3:28 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Vasily Averin @ 2011-10-07  7:59 UTC (permalink / raw)
  To: netdev; +Cc: David S. Miller, Toshiharu Okada, Vasily Averin

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(-)

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;
 
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pch_gbe: compilation warning in pch_gbe_setup_rctl() fixed
  2011-10-07  7:59 [PATCH] pch_gbe: compilation warning in pch_gbe_setup_rctl() fixed Vasily Averin
@ 2011-10-19  3:28 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-10-19  3:28 UTC (permalink / raw)
  To: vvs; +Cc: netdev, toshiharu-linux, vvs

From: Vasily Averin <vvs@parallels.com>
Date: Fri, 7 Oct 2011 11:59:19 +0400

> 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>

This patch is not appropriate for the 'net' tree, and in the
'net-next' tree not only is the driver in a completely different
directory but also this warning is already fixed.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-19  3:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-07  7:59 [PATCH] pch_gbe: compilation warning in pch_gbe_setup_rctl() fixed Vasily Averin
2011-10-19  3:28 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).