From: Gaurav Singh Date: Thu, 6 Aug 2020 03:52:13 +0000 (-0400) Subject: net/bnxt: remove redundant null check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d4cb1e71edd82ea2a90c19935825f1a0d1b35738;p=dpdk.git net/bnxt: remove redundant null check In bnxt_validate_and_parse_flow_type vxlan_spec cannot be NULL since its already being accessed before. Remove the redundant NULL check. Signed-off-by: Gaurav Singh Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_flow.c b/drivers/net/bnxt/bnxt_flow.c index 320b53d944..c1c59bbe58 100644 --- a/drivers/net/bnxt/bnxt_flow.c +++ b/drivers/net/bnxt/bnxt_flow.c @@ -554,7 +554,7 @@ bnxt_validate_and_parse_flow_type(struct bnxt *bp, } /* Check if VNI is masked. */ - if (vxlan_spec && vxlan_mask) { + if (vxlan_mask != NULL) { vni_masked = !!memcmp(vxlan_mask->vni, vni_mask, RTE_DIM(vni_mask));