[PATCH] nvme-auth: fix smatch warning complaints

Dan Carpenter error27 at gmail.com
Tue Dec 27 09:53:48 PST 2022


On Sun, Dec 25, 2022 at 01:28:51PM +0200, Sagi Grimberg wrote:
> When initializing auth context, there may be no secrets passed
> by the user. Make return code explicit when returning successfully.
> 
> smatch warnings:
> drivers/nvme/host/auth.c:950 nvme_auth_init_ctrl() warn: missing error code? 'ret'
> 
> Reported-by: kernel test robot <lkp at intel.com>
> Reported-by: Dan Carpenter <error27 at gmail.com>
> Signed-off-by: Sagi Grimberg <sagi at grimberg.me>

Awesome.  Thanks!

regards,
dan carpenter




More information about the Linux-nvme mailing list