diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-09-26 16:12:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-26 20:15:44 +0300 |
commit | 1fac4b2fdbccab69cb781aae68f540be94d5549e (patch) | |
tree | 882873d96bd83e5ddbc15db386f2e09aa47dae2a | |
parent | d9db5e3680c87fdbdf86fcb1c42caea4bf98680c (diff) | |
download | linux-1fac4b2fdbccab69cb781aae68f540be94d5549e.tar.xz |
bnxt_en: Remove redundant unlikely()
IS_ERR() already implies unlikely(), so it can be omitted.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index c25f5b555adf..5ba49938ba55 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -1491,7 +1491,7 @@ static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_napi *bnapi, u32 *raw_cons, (struct rx_tpa_end_cmp *)rxcmp, (struct rx_tpa_end_cmp_ext *)rxcmp1, event); - if (unlikely(IS_ERR(skb))) + if (IS_ERR(skb)) return -EBUSY; rc = -ENOMEM; |