1
0

BUG_ON() Conversion in drivers/net/

this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better optimized away.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Este cometimento está contido em:
Eric Sesterhenn
2006-04-02 13:52:48 +02:00
cometido por Adrian Bunk
ascendente 7e99e9b663
cometimento 5d9428de1a
15 ficheiros modificados com 24 adições e 49 eliminações

Ver ficheiro

@@ -765,8 +765,7 @@ irqreturn_t arcnet_interrupt(int irq, void *dev_id, struct pt_regs *regs)
BUGMSG(D_DURING, "in arcnet_interrupt\n");
lp = dev->priv;
if (!lp)
BUG();
BUG_ON(!lp);
spin_lock(&lp->lock);