Commit e68970e7 authored by Francois Romieu's avatar Francois Romieu

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: default avatarFrancois Romieu <romieu@fr.zoreil.com>
parent d03d376d
......@@ -2009,7 +2009,6 @@ static void cp_remove_one (struct pci_dev *pdev)
struct net_device *dev = pci_get_drvdata(pdev);
struct cp_private *cp = netdev_priv(dev);
BUG_ON(!dev);
unregister_netdev(dev);
iounmap(cp->regs);
if (cp->wol_enabled)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment