net/ice/base: fix null pointer dereferences for parser
authorJunfeng Guo <junfeng.guo@intel.com>
Wed, 13 Oct 2021 10:34:55 +0000 (10:34 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 13 Oct 2021 10:29:54 +0000 (12:29 +0200)
commitc2450e933f01d4d31448240f7304730292db7ee8
tree68535d678defa2b5e599cba9b090b7e176a5f7ab
parentbaf1d4cd8aed73a157424469302aec2a03a94aca
net/ice/base: fix null pointer dereferences for parser

Null-checking "p" suggests that it may be null, but it has already
been dereferenced on all paths leading to the check. Thus correct
the code lines and remove the redundant line.

Fixes: c84f8aa2100c ("net/ice/base: add parser runtime skeleton")

Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_parser.c