Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cca4aa83 authored by Eric Sesterhenn / snakebyte's avatar Eric Sesterhenn / snakebyte Committed by Jeff Garzik
Browse files

[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: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 7e0b58f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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); */