Skip to content

Commit

Permalink
[PATCH] BUG_ON() Conversion in net/tulip/winbond-840.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sesterhenn / snakebyte authored and Jeff Garzik committed Jan 27, 2006
1 parent 7e0b58f commit cca4aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/tulip/winbond-840.c
Original file line number Diff line number Diff line change
Expand Up @@ -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); */
Expand Down

0 comments on commit cca4aa8

Please sign in to comment.