Skip to content

Commit

Permalink
fs_enet: silence a build warning (unused variable)
Browse files Browse the repository at this point in the history
Since commit 720a43e
(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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Gerhard Sittig authored and David S. Miller committed Aug 23, 2013
1 parent 05f147e commit 35b9eb0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 35b9eb0

Please sign in to comment.