[PATCH] scsi: isci: Remove redundant initialization of variable 'status'

2021-02-03 Thread Yang Li
This patch removes unneeded return variables. It fixes the following warning detected by coccinelle: ./drivers/scsi/isci/request.c:1483:17-23: Unneeded variable: "status". Return "SCI_SUCCESS" on line 1503 ./drivers/scsi/isci/request.c:2157:17-23: Unneeded variable: "status". Return "SCI_SUCCESS"

Re: [PATCH] scsi: isci: remove redundant initialization of variable status

2020-07-24 Thread Martin K. Petersen
On Thu, 23 Jul 2020 15:26:14 +0100, Colin King wrote: > The variable status is being initialized with a value that is never read > and it is being updated later with a new value. The initialization is > redundant and can be removed. Applied to 5.9/scsi-queue, thanks! [1/1] scsi: isci: Remove

[PATCH] scsi: isci: remove redundant initialization of variable status

2020-07-23 Thread Colin King
From: Colin Ian King The variable status is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/scsi/isci/request.c