lkml.org 
[lkml]   [2022]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] scsi:aic94xx: Fix self assignment
Date
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(-)

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
\
 
 \ /
  Last update: 2022-11-24 10:32    [W:0.184 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site