提交 e68970e7 编写于 作者: F 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: NFrancois Romieu <romieu@fr.zoreil.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册