Skip to content

Commit 44862dc

Browse files
johnpgarrymartinkpetersen
authored andcommitted
scsi: libsas: Delete sas_ata_task.stp_affil_pol
Since libsas was introduced in commit 2908d77 ("[SCSI] aic94xx: new driver"), sas_ata_task.stp_affil_pol is never set, so delete it and the reference in asd_build_ata_ascb(). Signed-off-by: John Garry <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Damien Le Moal <[email protected]> Reviewed-by: Jason Yan <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 7b964c4 commit 44862dc

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

drivers/scsi/aic94xx/aic94xx_task.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,7 @@ static int asd_build_ata_ascb(struct asd_ascb *ascb, struct sas_task *task,
390390

391391
scb->ata_task.retry_count = task->ata_task.retry_count;
392392

393-
if (task->ata_task.stp_affil_pol)
394-
flags = STP_AFFIL_POLICY;
395-
else
396-
flags = 0;
397-
scb->ata_task.flags = flags;
393+
scb->ata_task.flags = 0;
398394
}
399395
ascb->tasklet_complete = asd_task_tasklet_complete;
400396

include/scsi/libsas.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,6 @@ struct sas_ata_task {
529529

530530
u8 dma_xfer:1; /* PIO:0 or DMA:1 */
531531
u8 use_ncq:1;
532-
u8 stp_affil_pol:1;
533532

534533
u8 device_control_reg_update:1;
535534

0 commit comments

Comments
 (0)