[PATCH] nvme: Fix debugfs_create_dir error checking

Chaitanya Kulkarni chaitanyak at nvidia.com
Mon Jun 19 22:46:43 PDT 2023


On 6/13/23 10:24, Atul Raut wrote:
> The debugfs_create_dir function returns ERR_PTR
> in case of error and the correct way to check an
> error is 'IS_ERR' inline function.
> This patch will replace the null-comparison with IS_ERR
>
> Signed-off-by: Atul Raut <rauji.raut at gmail.com>
> ---
>   

Looks good.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>

-ck




More information about the Linux-nvme mailing list