summaryrefslogtreecommitdiffstats
path: root/drivers/net/tulip
diff options
context:
space:
mode:
authorEric Sesterhenn / snakebyte <snakebyte@gmx.de>2006-01-26 22:02:49 +0100
committerJeff Garzik <jgarzik@pobox.com>2006-01-27 10:33:16 -0500
commitcca4aa83c79bcd571b06c83c50ea63cb75f1c2bb (patch)
treeee355d11b62f5f22fcdcfae5f4d5b31629227dfb /drivers/net/tulip
parent7e0b58f32fb5e9c958078a6d722a7d0b230346a7 (diff)
downloadlinux-cca4aa83c79bcd571b06c83c50ea63cb75f1c2bb.tar.bz2
[PATCH] BUG_ON() Conversion in net/tulip/winbond-840.c
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>
Diffstat (limited to 'drivers/net/tulip')
-rw-r--r--drivers/net/tulip/winbond-840.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c
index 5b1af3986abf..ba05dedf29d3 100644
--- 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); */