Skip to content

Commit 1523226

Browse files
tobluxmattst88
authored andcommitted
alpha: Use str_yes_no() helper in pci_dac_dma_supported()
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>
1 parent 757f051 commit 1523226

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/alpha/kernel/pci_iommu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/log2.h>
1414
#include <linux/dma-map-ops.h>
1515
#include <linux/iommu-helper.h>
16+
#include <linux/string_choices.h>
1617

1718
#include <asm/io.h>
1819
#include <asm/hwrpb.h>
@@ -212,7 +213,7 @@ static int pci_dac_dma_supported(struct pci_dev *dev, u64 mask)
212213

213214
/* If both conditions above are met, we are fine. */
214215
DBGA("pci_dac_dma_supported %s from %ps\n",
215-
ok ? "yes" : "no", __builtin_return_address(0));
216+
str_yes_no(ok), __builtin_return_address(0));
216217

217218
return ok;
218219
}

0 commit comments

Comments
 (0)