From: Niklas Cassel Date: Thu, 23 Apr 2026 16:43:30 +0000 (+0200) Subject: ata: libahci: use ahci_nr_ports() helper X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=3f8e2146d0c4ea5abc8532ae74b053faf9e77bc8;p=thirdparty%2Flinux.git 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 --- diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index c79abdfcd7a9b..7169e9e89034e 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,