mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
d03d376dd2
commit
e68970e754
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue