]> git.dujemihanovic.xyz Git - linux.git/commit
net: qede: use return from qede_parse_actions()
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Fri, 26 Apr 2024 09:12:26 +0000 (09:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2024 09:02:43 +0000 (10:02 +0100)
commitf26f719a36e56381a1f4230e5364e7ad4d485888
tree53d1f19dbc871a52a4667cb943c8e80c5b746182
parent27b44414a34b108c5a37cd5b4894f606061d86e7
net: qede: use return from qede_parse_actions()

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

qede_parse_actions() can currently fail with:
* -EINVAL
* -EOPNOTSUPP

This patch changes the code to use the actual
return code, not just return -EINVAL.

The blaimed commit broke the implicit assumption
that only -EINVAL would ever be returned.

Only compile tested.

Fixes: 319a1d19471e ("flow_offload: check for basic action hw stats type")
Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_filter.c