Skip to content

Commit

Permalink
drivers/net/82596.c: fix warning
Browse files Browse the repository at this point in the history
drivers/net/82596.c: In function 'i596_open':
drivers/net/82596.c:1044: warning: label 'err_irq_dev' defined but not used

Caused by "82596: free resources on error"

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Andrew Morton authored and David S. Miller committed Jul 19, 2010
1 parent e2df8b7 commit 6539548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/82596.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,8 +1040,8 @@ static int i596_open(struct net_device *dev)
err_irq_56:
#ifdef ENABLE_MVME16x_NET
free_irq(0x56, dev);
#endif
err_irq_dev:
#endif
free_irq(dev->irq, dev);

return res;
Expand Down

0 comments on commit 6539548

Please sign in to comment.