scsi: pm8001: Remove redundant initialization of variable 'rv'
The variable 'rv' is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Link: https://lore.kernel.org/r/20210804143319.115340-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")
This commit is contained in:
Родитель
102851fc9a
Коммит
83da6ad6f9
|
@ -1323,7 +1323,7 @@ int pm8001_mpi_build_cmd(struct pm8001_hba_info *pm8001_ha,
|
|||
void *pMessage;
|
||||
unsigned long flags;
|
||||
int q_index = circularQ - pm8001_ha->inbnd_q_tbl;
|
||||
int rv = -1;
|
||||
int rv;
|
||||
|
||||
WARN_ON(q_index >= PM8001_MAX_INB_NUM);
|
||||
spin_lock_irqsave(&circularQ->iq_lock, flags);
|
||||
|
|
Загрузка…
Ссылка в новой задаче