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
@@ -461,8 +461,7 @@ static inline void process_cmdrequest(int recvlength, uint8_t *recvbuff,
|
||||
return;
|
||||
}
|
||||
|
||||
if (!in_interrupt())
|
||||
BUG();
|
||||
BUG_ON(!in_interrupt());
|
||||
|
||||
spin_lock(&priv->driver_lock);
|
||||
memcpy(priv->cmd_resp_buff, recvbuff + MESSAGE_HEADER_LEN,
|
||||
|
Reference in New Issue
Block a user