提交 a707cd6e 编写于 作者: E Eric Sesterhenn / snakebyte 提交者: Jeff Garzik

[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: NEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 97309d1a
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册