[PATCH] nvme-fabrics: fix returnvar.cocci warnings
Chaitanya Kulkarni
chaitanyak at nvidia.com
Tue Jan 18 23:40:53 PST 2022
On 1/18/22 1:25 AM, kernel test robot wrote:
> External email: Use caution opening links or attachments
>
>
> From: kernel test robot <lkp at 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 at suse.de>
> Reported-by: kernel test robot <lkp at intel.com>
> Signed-off-by: kernel test robot <lkp at intel.com>
> ---
>
Looks good.
Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>
More information about the Linux-nvme
mailing list