aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/8139cp.c
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2006-08-15 10:22:27 -0400
committerFrancois Romieu <romieu@fr.zoreil.com>2006-08-31 16:15:41 -0400
commite68970e7543815133224f79a858e7c9e0c42f4de (patch)
tree87814a5defcad4201cf37e5c15ab497fdd301859 /drivers/net/8139cp.c
parentd03d376dd29cae53bf70a21a0c26b306abe37326 (diff)
8139cp: removal of useless BUG_ON() check
netdev_priv() will provide a nice oops a few lines before the BUG_ON() check. Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r--drivers/net/8139cp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c
index 9aef517d7502..94ab3c31e7e1 100644
--- a/drivers/net/8139cp.c
+++ b/drivers/net/8139cp.c
@@ -2009,7 +2009,6 @@ static void cp_remove_one (struct pci_dev *pdev)
2009 struct net_device *dev = pci_get_drvdata(pdev); 2009 struct net_device *dev = pci_get_drvdata(pdev);
2010 struct cp_private *cp = netdev_priv(dev); 2010 struct cp_private *cp = netdev_priv(dev);
2011 2011
2012 BUG_ON(!dev);
2013 unregister_netdev(dev); 2012 unregister_netdev(dev);
2014 iounmap(cp->regs); 2013 iounmap(cp->regs);
2015 if (cp->wol_enabled) 2014 if (cp->wol_enabled)