Message ID | 20221124092605.1677082-1-konstantin.meskhidze@huawei.com |
---|---|
State | New |
Headers | show |
Series | scsi:aic94xx: Fix self assignment | expand |
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;
This commit fixes self assignment of scb->ssp_task.retry_count in asd_build_ssp_asc() function. Signed-off-by: Konstantin Meskhidze <konstantin.meskhidze@huawei.com> --- drivers/scsi/aic94xx/aic94xx_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)