[PATCH] nvme: Fix missing error code in nvme_configure_directives()
Chaitanya Kulkarni
chaitanyak at nvidia.com
Thu Sep 9 09:20:42 PDT 2021
On 9/9/21 2:50 AM, Jiapeng Chong wrote:
> From: chongjiapeng <jiapeng.chong at linux.alibaba.com>
>
> The error code is missing in this code scenario, add the error code
> '-EINVAL' to the return value 'ret'.
>
> Eliminate the follow smatch warning:
>
> drivers/nvme/host/core.c:786 nvme_configure_directives() warn: missing
> error code 'ret'.
>
> Reported-by: Abaci Robot <abaci at linux.alibaba.com>
> Fixes: f5d118406247 ("nvme: add support for streams and directives")
> Signed-off-by: chongjiapeng <jiapeng.chong at linux.alibaba.com>
> ---
Looks good.
Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>
More information about the Linux-nvme
mailing list