git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b20510
)
net/bnxt: fix boolean operator usage
author
Lance Richardson
<lance.richardson@broadcom.com>
Thu, 22 Oct 2020 18:45:10 +0000
(14:45 -0400)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:02 +0000
(23:35 +0100)
Use boolean AND operator instead of bitwise operator.
Coverity issue: 323488
Fixes:
b42c15c83e88
("net/bnxt: support trusted VF")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnxt/bnxt_ethdev.c
b/drivers/net/bnxt/bnxt_ethdev.c
index
8025e33
..
6757d36
100644
(file)
--- a/
drivers/net/bnxt/bnxt_ethdev.c
+++ b/
drivers/net/bnxt/bnxt_ethdev.c
@@
-1550,7
+1550,7
@@
static int bnxt_mac_addr_add_op(struct rte_eth_dev *eth_dev,
if (rc)
return rc;
- if (BNXT_VF(bp) & !BNXT_VF_IS_TRUSTED(bp)) {
+ if (BNXT_VF(bp) &
&
!BNXT_VF_IS_TRUSTED(bp)) {
PMD_DRV_LOG(ERR, "Cannot add MAC address to a VF interface\n");
return -ENOTSUP;
}