summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorEric Sesterhenn / snakebyte <snakebyte@gmx.de>2006-01-26 22:02:51 +0100
committerJeff Garzik <jgarzik@pobox.com>2006-01-27 10:33:16 -0500
commita707cd6e2d0a8c21dd8aeef8e4a0c0ccf8774fa9 (patch)
treef28ad3ea7984cb8c69228a6665fbb57368017218 /drivers/net
parent97309d1a0bbdcb0813ea08574b4473d8e5416012 (diff)
downloadblackbird-op-linux-a707cd6e2d0a8c21dd8aeef8e4a0c0ccf8774fa9.tar.gz
blackbird-op-linux-a707cd6e2d0a8c21dd8aeef8e4a0c0ccf8774fa9.zip
[PATCH] BUG_ON() Conversion in net/tulip/xircom_cb.c
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/tulip/xircom_cb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/tulip/xircom_cb.c b/drivers/net/tulip/xircom_cb.c
index 60d1e05ab732..c5c738a51ee3 100644
--- a/drivers/net/tulip/xircom_cb.c
+++ b/drivers/net/tulip/xircom_cb.c
@@ -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 */
OpenPOWER on IntegriCloud