mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 17:51:57 +09:00
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>
This commit is contained in:
committed by
Saeed Mahameed
parent
51ada5a523
commit
3094552bcd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user