BUG_ON() Conversion in drivers/net/
this changes if() BUG(); constructs to BUG_ON() which is cleaner, contains unlikely() and can better optimized away. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
This commit is contained in:
committed by
Adrian Bunk
parent
7e99e9b663
commit
5d9428de1a
@@ -1093,8 +1093,7 @@ static int process_responses(struct adapter *adapter, int budget)
|
||||
if (likely(e->DataValid)) {
|
||||
struct freelQ *fl = &sge->freelQ[e->FreelistQid];
|
||||
|
||||
if (unlikely(!e->Sop || !e->Eop))
|
||||
BUG();
|
||||
BUG_ON(!e->Sop || !e->Eop);
|
||||
if (unlikely(e->Offload))
|
||||
unexpected_offload(adapter, fl);
|
||||
else
|
||||
|
Reference in New Issue
Block a user