Skip to content

Commit 6933eb8

Browse files
committed
ata: libata-sata: Remove superfluous assignment in ata_sas_port_alloc()
ata_sas_port_alloc() calls ata_port_alloc() which already assigns ap->lock so there is no need for ata_sas_port_alloc() to assign it again. Reviewed-by: Damien Le Moal <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Niklas Cassel <[email protected]>
1 parent 23262cc commit 6933eb8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/ata/libata-sata.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,6 @@ struct ata_port *ata_sas_port_alloc(struct ata_host *host,
12281228
return NULL;
12291229

12301230
ap->port_no = 0;
1231-
ap->lock = &host->lock;
12321231
ap->pio_mask = port_info->pio_mask;
12331232
ap->mwdma_mask = port_info->mwdma_mask;
12341233
ap->udma_mask = port_info->udma_mask;

0 commit comments

Comments
 (0)