]> git.dujemihanovic.xyz Git - linux.git/commit
net/mlx5: HWS, changed E2BIG error to a negative return code
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Mon, 16 Sep 2024 11:13:39 +0000 (14:13 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 25 Sep 2024 20:15:45 +0000 (13:15 -0700)
commitd15525f300109fac5477dce1b8fef244c5dc9ec3
treee0fbc3bc24cff53233a931ee38160ff4ccbeee2c
parentd8c561741ef83980114b3f7f95ffac54600f3f16
net/mlx5: HWS, changed E2BIG error to a negative return code

Fixed all the 'E2BIG' returns in error flow of functions to
the negative '-E2BIG' as we are using negative error codes
everywhere in HWS code.

This also fixes the following smatch warnings:
"warn: was negative '-E2BIG' intended?"

Fixes: 74a778b4a63f ("net/mlx5: HWS, added definers handling")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/f8c77688-7d83-4937-baba-ac844dfe2e0b@stanley.mountain/
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_bwc_complex.c
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c