This commit fixes self assignment of scb->ssp_task.retry_count
in asd_build_ssp_asc() function.
Signed-off-by: Konstantin Meskhidze <[email protected]>
---
drivers/scsi/aic94xx/aic94xx_task.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/aic94xx/aic94xx_task.c b/drivers/scsi/aic94xx/aic94xx_task.c
index ed119a3f6f2e..5a588e9f7d0a 100644
--- a/drivers/scsi/aic94xx/aic94xx_task.c
+++ b/drivers/scsi/aic94xx/aic94xx_task.c
@@ -493,7 +493,7 @@ static int asd_build_ssp_ascb(struct asd_ascb *ascb, struct sas_task *task,
scb->ssp_task.conn_handle = cpu_to_le16(
(u16)(unsigned long)dev->lldd_dev);
scb->ssp_task.data_dir = data_dir_flags[task->data_dir];
- scb->ssp_task.retry_count = scb->ssp_task.retry_count;
+ scb->ssp_task.retry_count = task->ssp_task.retry_count;
ascb->tasklet_complete = asd_task_tasklet_complete;
--
2.25.1