diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-08-06 14:23:13 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-08-10 06:24:32 +0300 |
commit | e9b1adb7c5e35dccace0341db4d9e9c9fb40eeef (patch) | |
tree | b82d601eba0e23fa150d8ef028244759fad1ddbf /drivers/scsi/snic/snic_scsi.c | |
parent | bf25967ac54129ffb676ee0dbe3b8b34af6c6232 (diff) | |
download | linux-e9b1adb7c5e35dccace0341db4d9e9c9fb40eeef.tar.xz |
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")
Diffstat (limited to 'drivers/scsi/snic/snic_scsi.c')
-rw-r--r-- | drivers/scsi/snic/snic_scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/snic/snic_scsi.c b/drivers/scsi/snic/snic_scsi.c index 6dd0ff188bb4..92f5b65c2a27 100644 --- a/drivers/scsi/snic/snic_scsi.c +++ b/drivers/scsi/snic/snic_scsi.c @@ -2383,7 +2383,7 @@ snic_host_reset(struct scsi_cmnd *sc) { struct Scsi_Host *shost = sc->device->host; u32 start_time = jiffies; - int ret = FAILED; + int ret; SNIC_SCSI_DBG(shost, "host reset:sc %p sc_cmd 0x%x req %p tag %d flags 0x%llx\n", |