net: qede: use return from qede_flow_parse_ports()
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Fri, 3 May 2024 10:55:03 +0000 (10:55 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 7 May 2024 09:08:14 +0000 (11:08 +0200)
commitc0c66eba6322a300a27cffb2295af70ad7f63d40
treef54976f4325bd5653c08f732633be67f01251431
parente5ed2f0349bf764555bcdb870a43a9bb6b1546db
net: qede: use return from qede_flow_parse_ports()

When calling qede_flow_parse_ports(), then the
return code was only used for a non-zero check,
and then -EINVAL was returned.

qede_flow_parse_ports() can currently fail with:
* -EINVAL

This patch changes qede_flow_parse_v{4,6}_common() to
use the actual return code from qede_flow_parse_ports(),
so it's no longer assumed that all errors are -EINVAL.

Only compile tested.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/qlogic/qede/qede_filter.c