]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: libsas: Remove duplicated setting for task->task_state_flags
authorXiang Chen <chenxiang66@hisilicon.com>
Fri, 11 Feb 2022 06:42:56 +0000 (14:42 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 11 Feb 2022 22:13:29 +0000 (17:13 -0500)
Task->task_state_flags is already set in function sas_alloc_task(), so
remove duplicated setting.

Link: https://lore.kernel.org/r/1644561778-183074-3-git-send-email-chenxiang66@hisilicon.com
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_ata.c

index a315715b36227aab26efa77ce301f2c0e7b9f103..8dbd5a771824b3369269a91b5c558ec0d73b4311 100644 (file)
@@ -209,7 +209,6 @@ static unsigned int sas_ata_qc_issue(struct ata_queued_cmd *qc)
        }
        task->scatter = qc->sg;
        task->ata_task.retry_count = 1;
-       task->task_state_flags = SAS_TASK_STATE_PENDING;
        qc->lldd_task = task;
 
        task->ata_task.use_ncq = ata_is_ncq(qc->tf.protocol);