From 3f8e2146d0c4ea5abc8532ae74b053faf9e77bc8 Mon Sep 17 00:00:00 2001 From: Niklas Cassel Date: Thu, 23 Apr 2026 18:43:30 +0200 Subject: [PATCH] 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 Signed-off-by: Niklas Cassel --- drivers/ata/libahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index c79abdfcd7a9..7169e9e89034 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -2636,7 +2636,7 @@ void ahci_print_info(struct ata_host *host, const char *scc_s) , hweight32(impl), - (cap & 0x1f) + 1, + ahci_nr_ports(cap), impl); dev_info(host->dev,