Commit dab994bc authored by Shay Drory's avatar Shay Drory Committed by Leon Romanovsky

RDMA/mlx5: Fix NULL string error

checkpath is complaining about NULL string, change it to 'Unknown'.

Fixes: 37aa5c36 ("IB/mlx5: Add UARs write-combining and non-cached mapping")
Signed-off-by: default avatarShay Drory <shayd@nvidia.com>
Link: https://lore.kernel.org/r/8638e5c14fadbde5fa9961874feae917073af920.1695203958.git.leonro@nvidia.comSigned-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 2fad8f06
......@@ -2084,7 +2084,7 @@ static inline char *mmap_cmd2str(enum mlx5_ib_mmap_cmd cmd)
case MLX5_IB_MMAP_DEVICE_MEM:
return "Device Memory";
default:
return NULL;
return "Unknown";
}
}
......
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