]> www.infradead.org Git - users/hch/misc.git/commitdiff
alpha: Use str_yes_no() helper in pci_dac_dma_supported()
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 12 Feb 2025 11:14:47 +0000 (12:14 +0100)
committerMatt Turner <mattst88@gmail.com>
Fri, 14 Feb 2025 19:06:41 +0000 (14:06 -0500)
Remove hard-coded strings by using the str_yes_no() helper function.

Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Matt Turner <mattst88@gmail.com>
arch/alpha/kernel/pci_iommu.c

index 681f56089d9ce622b4accaaf5313654172c5b2f6..dc91de50f906dc5ef92914eec25167a378c28dda 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/log2.h>
 #include <linux/dma-map-ops.h>
 #include <linux/iommu-helper.h>
+#include <linux/string_choices.h>
 
 #include <asm/io.h>
 #include <asm/hwrpb.h>
@@ -212,7 +213,7 @@ static int pci_dac_dma_supported(struct pci_dev *dev, u64 mask)
 
        /* If both conditions above are met, we are fine. */
        DBGA("pci_dac_dma_supported %s from %ps\n",
-            ok ? "yes" : "no", __builtin_return_address(0));
+            str_yes_no(ok), __builtin_return_address(0));
 
        return ok;
 }