Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e68970e7 authored by Francois Romieu's avatar Francois Romieu
Browse files

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)