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

index 60d1e05ab732360af639655550cc24314d342b46..c5c738a51ee37de7584c584d74504ca5efd37fc1 100644 (file)
@@ -598,10 +598,8 @@ static void setup_descriptors(struct xircom_private *card)
        enter("setup_descriptors");
 
 
-       if (card->rx_buffer == NULL)
-               BUG();
-       if (card->tx_buffer == NULL)
-               BUG();
+       BUG_ON(card->rx_buffer == NULL);
+       BUG_ON(card->tx_buffer == NULL);
 
        /* Receive descriptors */
        memset(card->rx_buffer, 0, 128);        /* clear the descriptors */