diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2009-04-11 10:50:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-13 18:44:36 -0400 |
commit | 0ee904c35cc3fdd26a9c76077d9692d458309186 (patch) | |
tree | ce1dee044974b7c6040bbdb794747cd1baa8f6bb /drivers/net/atl1e/atl1e_main.c | |
parent | 710b523ac59426e8bfdea3533f42118e46b9cbfb (diff) |
drivers/net: replace BUG() with BUG_ON() if possible
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1e/atl1e_main.c')
-rw-r--r-- | drivers/net/atl1e/atl1e_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c index fb57b750866b..adac06195c8f 100644 --- a/drivers/net/atl1e/atl1e_main.c +++ b/drivers/net/atl1e/atl1e_main.c | |||
@@ -1794,8 +1794,7 @@ static void atl1e_tx_map(struct atl1e_adapter *adapter, | |||
1794 | memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc)); | 1794 | memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc)); |
1795 | 1795 | ||
1796 | tx_buffer = atl1e_get_tx_buffer(adapter, use_tpd); | 1796 | tx_buffer = atl1e_get_tx_buffer(adapter, use_tpd); |
1797 | if (tx_buffer->skb) | 1797 | BUG_ON(tx_buffer->skb); |
1798 | BUG(); | ||
1799 | 1798 | ||
1800 | tx_buffer->skb = NULL; | 1799 | tx_buffer->skb = NULL; |
1801 | tx_buffer->length = | 1800 | tx_buffer->length = |