]> err.no Git - linux-2.6/commitdiff
[PATCH] BUG_ON() Conversion in net/tulip/winbond-840.c
authorEric Sesterhenn / snakebyte <snakebyte@gmx.de>
Thu, 26 Jan 2006 21:02:49 +0000 (22:02 +0100)
committerJeff 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

index 5b1af3986abf533eae23e5384287bc9c1804b7e0..ba05dedf29d3396fa08d30c15c240535e6d64b6d 100644 (file)
@@ -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); */