ata,scsi: remove ata_sas_port_init()
authorNiklas Cassel <niklas.cassel@wdc.com>
Mon, 31 Jul 2023 14:34:18 +0000 (16:34 +0200)
committerDamien Le Moal <dlemoal@kernel.org>
Wed, 2 Aug 2023 08:45:30 +0000 (17:45 +0900)
commit541528170a5cb1342c378dfd46b04dfe024dbc7a
tree3851baa859daff7837141453da457192963c5d23
parenta76f1b637ce92c2b8d5da912826079010b11f138
ata,scsi: remove ata_sas_port_init()

ata_sas_port_init() now only contains a single initialization.

Move this single initialization to ata_sas_port_alloc(), since:
1) ata_sas_port_alloc() already initializes some of the struct members.
2) ata_sas_port_alloc() is only used by libsas.

Suggested-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/libata-sata.c
drivers/scsi/libsas/sas_ata.c
include/linux/libata.h