net/bnxt: fix logical AND in if condition

The if condition in bnxt_restore_mac_filters needs to check for
the result of logical AND. But it was not doing it resulting in
an incorrect check.

Fixes: b02f1573cd ("net/bnxt: restore MAC filters during reset recovery")
Cc: stable@dpdk.org

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
Ajit Khaparde 2020-07-23 17:04:37 -07:00 committed by Ferruh Yigit
parent 82c4fb852e
commit c557378fec

View File

@ -4372,7 +4372,7 @@ static int bnxt_restore_mac_filters(struct bnxt *bp)
uint16_t i;
int rc;
if (BNXT_VF(bp) & !BNXT_VF_IS_TRUSTED(bp))
if (BNXT_VF(bp) && !BNXT_VF_IS_TRUSTED(bp))
return 0;
rc = bnxt_dev_info_get_op(dev, &dev_info);