projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97309d1
)
[PATCH] BUG_ON() Conversion in net/tulip/xircom_cb.c
author
Eric Sesterhenn / snakebyte
<snakebyte@gmx.de>
Thu, 26 Jan 2006 21:02:51 +0000
(22:02 +0100)
committer
Jeff Garzik
<jgarzik@pobox.com>
Fri, 27 Jan 2006 15:33:16 +0000
(10:33 -0500)
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>
drivers/net/tulip/xircom_cb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tulip/xircom_cb.c
b/drivers/net/tulip/xircom_cb.c
index 60d1e05ab732360af639655550cc24314d342b46..c5c738a51ee37de7584c584d74504ca5efd37fc1 100644
(file)
--- 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 */