]> err.no Git - linux-2.6/blobdiff - drivers/net/tulip/xircom_cb.c
[PATCH] sata_via: convert to new EH, take #3
[linux-2.6] / drivers / net / tulip / xircom_cb.c
index 42e9ffb07af428f5559dc1ac5a38f8cbb17f1653..56344103ac233add684581f3c3f30ecef45d4031 100644 (file)
@@ -601,10 +601,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 */