Commit 586ee9e8 authored by Saeed Mahameed's avatar Saeed Mahameed

net/mlx5: sparse: warning: Using plain integer as NULL pointer

Return NULL instead of 0.
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Reviewed-by: default avatarMoshe Shemesh <moshe@mellanox.com>
parent 5edc4c72
......@@ -21,7 +21,7 @@ struct mlx5_dm *mlx5_dm_create(struct mlx5_core_dev *dev)
struct mlx5_dm *dm;
if (!(MLX5_CAP_GEN_64(dev, general_obj_types) & MLX5_GENERAL_OBJ_TYPES_CAP_SW_ICM))
return 0;
return NULL;
dm = kzalloc(sizeof(*dm), GFP_KERNEL);
if (!dm)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment