net/sfc: remove logically dead code
Coverity issue: 1419717 Fixes: a9825ccf5bb8 ("net/sfc: support flow API filters") Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Andy Moreton <amoreton@solarflare.com>
This commit is contained in:
parent
30788c5510
commit
8e07acbb12
@ -837,8 +837,7 @@ sfc_flow_parse_pattern(const struct rte_flow_item pattern[],
|
||||
return -rte_errno;
|
||||
}
|
||||
|
||||
for (; pattern != NULL &&
|
||||
pattern->type != RTE_FLOW_ITEM_TYPE_END; pattern++) {
|
||||
for (; pattern->type != RTE_FLOW_ITEM_TYPE_END; pattern++) {
|
||||
item = sfc_flow_get_item(pattern->type);
|
||||
if (item == NULL) {
|
||||
rte_flow_error_set(error, ENOTSUP,
|
||||
@ -868,13 +867,6 @@ sfc_flow_parse_pattern(const struct rte_flow_item pattern[],
|
||||
prev_layer = item->layer;
|
||||
}
|
||||
|
||||
if (pattern == NULL) {
|
||||
rte_flow_error_set(error, EINVAL,
|
||||
RTE_FLOW_ERROR_TYPE_ITEM, NULL,
|
||||
"NULL item");
|
||||
return -rte_errno;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user