forked from Minki/linux
net: ethernet: bnx2: Remove extra parentheses
The following coccinelle script removes extra parentheses to fix the clang warning of extraneous parentheses. @disable paren@ identifier i; expression e; statement s; @@ if ( -(i == e) +i == e ) s Suggested-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Signed-off-by: Varsha Rao <rvarsha016@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
13ce3bc9c1
commit
6dc5aa2123
@ -3285,7 +3285,7 @@ next_rx:
|
||||
sw_cons = BNX2_NEXT_RX_BD(sw_cons);
|
||||
sw_prod = BNX2_NEXT_RX_BD(sw_prod);
|
||||
|
||||
if ((rx_pkt == budget))
|
||||
if (rx_pkt == budget)
|
||||
break;
|
||||
|
||||
/* Refresh hw_cons to see if there is new work */
|
||||
|
Loading…
Reference in New Issue
Block a user