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>
This commit is contained in:

committed by
David S. Miller

parent
710b523ac5
commit
0ee904c35c
@@ -3176,11 +3176,8 @@ static int ipw_load_firmware(struct ipw_priv *priv, u8 * data, size_t len)
|
||||
/* Start the Dma */
|
||||
rc = ipw_fw_dma_enable(priv);
|
||||
|
||||
if (priv->sram_desc.last_cb_index > 0) {
|
||||
/* the DMA is already ready this would be a bug. */
|
||||
BUG();
|
||||
goto out;
|
||||
}
|
||||
/* the DMA is already ready this would be a bug. */
|
||||
BUG_ON(priv->sram_desc.last_cb_index > 0);
|
||||
|
||||
do {
|
||||
chunk = (struct fw_chunk *)(data + offset);
|
||||
|
Reference in New Issue
Block a user