summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sun/sunbmac.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-09-21 15:23:12 -0400
committerDavid S. Miller <davem@davemloft.net>2012-09-21 15:23:12 -0400
commit0bfd6075cf23d960198235b52f2fe941d7b397a2 (patch)
tree2e27f387a43601db36d22e27b2417300ea8d0d52 /drivers/net/ethernet/sun/sunbmac.c
parent10f3f51d56648f4eaf5c9f7aee27c418b833c3c0 (diff)
downloadlinux-0bfd6075cf23d960198235b52f2fe941d7b397a2.tar.gz
sunbmac: Remove unused local variable.
Commit eb716c54b1c71ad28ab20461bff831bd481066c4 ("sunbmac: remove unnecessary setting of skb->dev") caused the local varible 'dev' in bigmac_init_rings to become unused. And now the compiler warns about it. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/sunbmac.c')
-rw-r--r--drivers/net/ethernet/sun/sunbmac.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/sunbmac.c b/drivers/net/ethernet/sun/sunbmac.c
index 967fe8cb476e..c9c977bf02ac 100644
--- a/drivers/net/ethernet/sun/sunbmac.c
+++ b/drivers/net/ethernet/sun/sunbmac.c
@@ -212,7 +212,6 @@ static void bigmac_clean_rings(struct bigmac *bp)
static void bigmac_init_rings(struct bigmac *bp, int from_irq)
{
struct bmac_init_block *bb = bp->bmac_block;
- struct net_device *dev = bp->dev;
int i;
gfp_t gfp_flags = GFP_KERNEL;