]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite18317f596dc9271f74a9e834b672acaf93e8fa8
tree557bdd806d4dadd4c54130bc113cc1abfbad6117
parentb7c7140c6e7faf7a4c5d89c3fe1ba1e7ec66b38e
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