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)
commitcb39ccc5cbe1011d8d21886b75e2468070ac672c
tree1daa8dc532ed638dbfb86eb366b69b1665a7aff0
parent94c4fed710c372313157f20b5eced39d04a96f88
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: 2132b71f78d2 ("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