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 <gaurav1086@gmail.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
parent
2477be96e7
commit
d4cb1e71ed
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user