]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: mlx5e_fec_in_caps() returns a boolean
authorSaeed Mahameed <saeedm@nvidia.com>
Fri, 11 Sep 2020 18:00:06 +0000 (11:00 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Sep 2020 00:22:25 +0000 (17:22 -0700)
commit6f823dd1426f456b558fe279a1ae7eaef4ee8dbd
tree1daa8dc532ed638dbfb86eb366b69b1665a7aff0
parent40dad847d7ec8bc43bb0ad34ddddc85d2b7c8ac4
net/mlx5e: mlx5e_fec_in_caps() returns a boolean

Returning errno is a bug, fix that.

Also fixes smatch warnings:
drivers/net/ethernet/mellanox/mlx5/core/en/port.c:453
mlx5e_fec_in_caps() warn: signedness bug returning '(-95)'

Fixes: 311f5799562b ("net/mlx5e: Advertise globaly supported FEC modes")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Aya Levin <ayal@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/port.c