projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e0b58f
)
[PATCH] BUG_ON() Conversion in net/tulip/winbond-840.c
author
Eric Sesterhenn / snakebyte
<snakebyte@gmx.de>
Thu, 26 Jan 2006 21:02:49 +0000
(22:02 +0100)
committer
Jeff Garzik
<jgarzik@pobox.com>
Fri, 27 Jan 2006 15:33:16 +0000
(10:33 -0500)
hi,
this changes if() BUG(); constructs to BUG_ON() which is
cleaner and can better optimized away
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/tulip/winbond-840.c
patch
|
blob
|
history
diff --git
a/drivers/net/tulip/winbond-840.c
b/drivers/net/tulip/winbond-840.c
index
5b1af39
..
ba05ded
100644
(file)
--- a/
drivers/net/tulip/winbond-840.c
+++ b/
drivers/net/tulip/winbond-840.c
@@
-1645,7
+1645,7
@@
static int w840_suspend (struct pci_dev *pdev, pm_message_t state)
/* no more hardware accesses behind this line. */
-
if (np->csr6) BUG(
);
+
BUG_ON(np->csr6
);
if (ioread32(ioaddr + IntrEnable)) BUG();
/* pci_power_off(pdev, -1); */