diff options
author | Roi Dayan <roid@nvidia.com> | 2021-03-03 10:36:02 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-03-11 14:35:14 -0800 |
commit | 3094552bcd726682ded98e4f4aa97a7c6646f638 (patch) | |
tree | 0cd5afadf26117bc4600638392cc6979eb5e235b /drivers/net/ethernet/mellanox/mlx5 | |
parent | 51ada5a52379e4dbf69cba70be6a348413f7a01f (diff) | |
download | linux-3094552bcd726682ded98e4f4aa97a7c6646f638.tar.bz2 |
net/mlx5: SF, Fix return type
Fix the following coccicheck warnings:
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.h:50:8-9: WARNING:
return of 0/1 in function 'mlx5_sf_dev_allocated' with return type bool
Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.h b/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.h index 4de02902aef1..149fd9e698cf 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.h @@ -47,7 +47,7 @@ static inline void mlx5_sf_driver_unregister(void) static inline bool mlx5_sf_dev_allocated(const struct mlx5_core_dev *dev) { - return 0; + return false; } #endif |