Patchwork [net-next,1/2] fs_enet: silence a build warning (unused variable)

login
register
mail settings
Submitter Anatolij Gustschin
Date Aug. 22, 2013, 7:55 p.m.
Message ID <1377201313-10420-1-git-send-email-agust@denx.de>
Download mbox | patch
Permalink /patch/269162/
State Accepted
Delegated to: David Miller
Headers show

Comments

Anatolij Gustschin - Aug. 22, 2013, 7:55 p.m.
From: Gerhard Sittig <gsi@denx.de>

Since commit 720a43efd30f04a0a492c85fb997361c44fbae05
(drivers:net: Remove unnecessary OOM messages after netdev_alloc_skb)
there is a build warning:

drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c: In function 'tx_skb_align_workaround':
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c:586:26: warning: unused variable 'fep'

Fix it.

Signed-off-by: Gerhard Sittig <gsi@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 .../net/ethernet/freescale/fs_enet/fs_enet-main.c  |    1 -
 1 file changed, 1 deletion(-)
David Miller - Aug. 23, 2013, 5:14 a.m.
From: Anatolij Gustschin <agust@denx.de>
Date: Thu, 22 Aug 2013 21:55:12 +0200

> From: Gerhard Sittig <gsi@denx.de>
> 
> Since commit 720a43efd30f04a0a492c85fb997361c44fbae05
> (drivers:net: Remove unnecessary OOM messages after netdev_alloc_skb)
> there is a build warning:
> 
> drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c: In function 'tx_skb_align_workaround':
> drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c:586:26: warning: unused variable 'fep'
> 
> Fix it.
> 
> Signed-off-by: Gerhard Sittig <gsi@denx.de>
> Signed-off-by: Anatolij Gustschin <agust@denx.de>

Applied.
--
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/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
index 8de53a1..c04eb3a 100644
--- a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
+++ b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
@@ -583,7 +583,6 @@  static struct sk_buff *tx_skb_align_workaround(struct net_device *dev,
 					       struct sk_buff *skb)
 {
 	struct sk_buff *new_skb;
-	struct fs_enet_private *fep = netdev_priv(dev);
 
 	/* Alloc new skb */
 	new_skb = netdev_alloc_skb(dev, skb->len + 4);