fs_enet: silence a build warning (unused variable)
authorGerhard Sittig <gsi@denx.de>
Thu, 22 Aug 2013 19:55:12 +0000 (21:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Aug 2013 05:13:54 +0000 (22:13 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c

index 8de53a14a6f48895bc107c6f8ec40910d35ced7b..c04eb3aeb8343eb56ca26a7a4f1dd0793b2370bc 100644 (file)
@@ -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);