Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a707cd6e authored by Eric Sesterhenn / snakebyte's avatar Eric Sesterhenn / snakebyte Committed by Jeff Garzik
Browse files

[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: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 97309d1a
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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 */