diff options
author | Varsha Rao <rvarsha016@gmail.com> | 2018-06-03 17:19:04 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-04 17:07:27 -0400 |
commit | 6dc5aa212321c87a79746980eb258912bcf352ba (patch) | |
tree | 18b790ac118c9f07d21c6eb6b34afe4bad3cfd74 /drivers/net/ethernet | |
parent | 13ce3bc9c1b43566a31d3edc857a5950b2e77bd8 (diff) | |
download | blackbird-op-linux-6dc5aa212321c87a79746980eb258912bcf352ba.tar.gz blackbird-op-linux-6dc5aa212321c87a79746980eb258912bcf352ba.zip |
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c index 9ffc4a8c5fc7..2306523778d4 100644 --- a/drivers/net/ethernet/broadcom/bnx2.c +++ b/drivers/net/ethernet/broadcom/bnx2.c @@ -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 */ |