Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: snic: Remove redundant assignment to variable ret

The variable ret is being initialized with a value that is never read, the
assignment is redundant and can be removed.

Link: https://lore.kernel.org/r/20210806112313.12434-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Addresses-Coverity: ("Unused value")

authored by

Colin Ian King and committed by
Martin K. Petersen
e9b1adb7 bf25967a

+1 -1
+1 -1
drivers/scsi/snic/snic_scsi.c
··· 2383 2383 { 2384 2384 struct Scsi_Host *shost = sc->device->host; 2385 2385 u32 start_time = jiffies; 2386 - int ret = FAILED; 2386 + int ret; 2387 2387 2388 2388 SNIC_SCSI_DBG(shost, 2389 2389 "host reset:sc %p sc_cmd 0x%x req %p tag %d flags 0x%llx\n",