summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@nvidia.com>2020-09-11 21:00:06 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2020-09-22 03:22:25 +0300
commitcb39ccc5cbe1011d8d21886b75e2468070ac672c (patch)
tree1daa8dc532ed638dbfb86eb366b69b1665a7aff0 /net/switchdev/switchdev.c
parent94c4fed710c372313157f20b5eced39d04a96f88 (diff)
downloadlinux-cb39ccc5cbe1011d8d21886b75e2468070ac672c.tar.xz
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>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions