Re: [PATCH] nvme-fabrics: fix returnvar.cocci warnings

Chaitanya Kulkarni
2022-01-22T04:28:08Z

On 1/21/22 19:17, kernel test robot wrote:
> External email: Use caution opening links or attachments
>
>
> From: kernel test robot <lkp@intel.com>
>
> drivers/nvme/host/fabrics.c:1095:5-8: Unneeded variable: "ret". Return "0" on line 1109
>
>
> Remove unneeded variable used to store return value.
>
> Generated by: scripts/coccinelle/misc/returnvar.cocci
>
> Fixes: f18ee3d98815 ("nvme-fabrics: print out valid arguments when reading from /dev/nvme-fabrics")
> CC: Hannes Reinecke <hare@suse.de>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: kernel test robot <lkp@intel.com>
> ---

Looks good.

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