Skip to content

Commit

Permalink
[PATCH] BUG_ON() Conversion in net/tulip/xircom_cb.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sesterhenn / snakebyte authored and Jeff Garzik committed Jan 27, 2006
1 parent 97309d1 commit a707cd6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/net/tulip/xircom_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a707cd6

Please sign in to comment.