examples/ipsec-secgw: remove duplicated check
The two if check does the same task, so removing one.
Coverity issue: 355669
Fixes: 9ad50c29d0
("examples/ipsec-secgw: add app mode worker")
Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
This commit is contained in:
parent
cca3eda1b9
commit
ab722af65d
@ -112,12 +112,7 @@ check_sp(struct sp_ctx *sp, const uint8_t *nlp, uint32_t *sa_idx)
|
||||
rte_acl_classify((struct rte_acl_ctx *)sp, &nlp, &res, 1,
|
||||
DEFAULT_MAX_CATEGORIES);
|
||||
|
||||
if (unlikely(res == 0)) {
|
||||
/* No match */
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (res == DISCARD)
|
||||
if (unlikely(res == DISCARD))
|
||||
return 0;
|
||||
else if (res == BYPASS) {
|
||||
*sa_idx = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user