|
@@ -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 */
|