net/bnxt: fix flow check for null spec and mask
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Wed, 20 Nov 2019 03:00:23 +0000 (19:00 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:06 +0000 (17:36 +0100)
commitfb4921ab4cb7238a22160ac61280ad647a3dcc6c
tree7f0000b85c408fac71a4cd29a518b2198e48ea32
parentd9aa878b795bbe18b2587952bcfcd2f371b2d3fe
net/bnxt: fix flow check for null spec and mask

bnxt_validate_and_parse_flow_type already has protocol specific NULL
checks for rte_flow_item spec and mask and take actions accordingly.
A check at the top of the loop is redundant and is preventing the
protocol specific checks from being executed.

Fixes: b7e01f386059 ("net/bnxt: handle cleanup if flow creation fails")

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_flow.c