net/mlx5e: Use correct return type
authorRoi Dayan <roid@nvidia.com>
Wed, 11 Aug 2021 11:14:49 +0000 (14:14 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 24 Sep 2021 18:46:52 +0000 (11:46 -0700)
commit1836d78015b4fdff9cde6559e436e9e394d33197
tree557bdd806d4dadd4c54130bc113cc1abfbad6117
parent6c2509d4463640c4b91d5937b5b2ff5ca07f6567
net/mlx5e: Use correct return type

modify_header_match_supported() should return type bool but
it returns the value returned by is_action_keys_supported()
which is type int.

is_action_keys_supported() always returns either -EOPNOTSUPP
or 0 and it shouldn't change as the purpose of the function
is checking for support. so just make the function return
a bool type.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c