Skip to content

Commit 7b964c4

Browse files
johnpgarrymartinkpetersen
authored andcommitted
scsi: libsas: Delete sas_ata_task.set_affil_pol
Since libsas was introduced in commit 2908d77 ("[SCSI] aic94xx: new driver"), sas_ata_task.set_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 4dc051e commit 7b964c4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

drivers/scsi/aic94xx/aic94xx_task.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,10 @@ 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-
flags = 0;
394-
if (task->ata_task.set_affil_pol)
395-
flags |= SET_AFFIL_POLICY;
396393
if (task->ata_task.stp_affil_pol)
397-
flags |= STP_AFFIL_POLICY;
394+
flags = STP_AFFIL_POLICY;
395+
else
396+
flags = 0;
398397
scb->ata_task.flags = flags;
399398
}
400399
ascb->tasklet_complete = asd_task_tasklet_complete;

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 set_affil_pol:1;
533532
u8 stp_affil_pol:1;
534533

535534
u8 device_control_reg_update:1;

0 commit comments

Comments
 (0)