net/bnxt: fix boolean operator usage
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>
This commit is contained in:
parent
8b20510a04
commit
47b7076167
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user