From: Francois Romieu Date: Tue, 15 Aug 2006 14:22:27 +0000 (+0200) Subject: 8139cp: removal of useless BUG_ON() check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e68970e7543815133224f79a858e7c9e0c42f4de;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 --- 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) 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)