OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d03d376
)
8139cp: removal of useless BUG_ON() check
author
Francois Romieu
<romieu@fr.zoreil.com>
Tue, 15 Aug 2006 14:22:27 +0000
(16:22 +0200)
committer
Francois Romieu
<romieu@fr.zoreil.com>
Thu, 31 Aug 2006 20:15:41 +0000
(22:15 +0200)
netdev_priv() will provide a nice oops a few lines before
the BUG_ON() check.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
drivers/net/8139cp.c
patch
|
blob
|
history
diff --git
a/drivers/net/8139cp.c
b/drivers/net/8139cp.c
index
9aef517
..
94ab3c3
100644
(file)
--- 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)