Skip to contentSkip to conversation

ata: libahci: use ahci_nr_ports() helper

PATCH Applied Niklas Cassel 2 participants 3 messages Apr 23 – Apr 27 libata

lore
Share & tools
lore

Niklas Cassel

author maintainer
#0 lore raw

PATCH 1/1 ata: libahci: use ahci_nr_ports() helper

Use ahci_nr_ports() helper instead of open coding the same.

No functional change.

---
 drivers/ata/libahci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/libahci.c +1 -1
index c79abdfcd7a9..7169e9e89034 100644
@@ -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,
Signature · 1 line
2.53.0