The two if check does the same task, so removing one.
Coverity issue: 355669
Fixes:
9ad50c29d01d ("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>
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;