Skip to content

Commit 3f8e214

Browse files
committed
ata: libahci: use ahci_nr_ports() helper
Use ahci_nr_ports() helper instead of open coding the same. No functional change. Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Niklas Cassel <cassel@kernel.org>
1 parent e7ae89a commit 3f8e214

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ata/libahci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2636,7 +2636,7 @@ void ahci_print_info(struct ata_host *host, const char *scc_s)
26362636
,
26372637

26382638
hweight32(impl),
2639-
(cap & 0x1f) + 1,
2639+
ahci_nr_ports(cap),
26402640
impl);
26412641

26422642
dev_info(host->dev,

0 commit comments

Comments
 (0)