alpha: Use str_yes_no() helper in pci_dac_dma_supported()
PATCH 1/1 alpha: Use str_yes_no() helper in pci_dac_dma_supported()
Remove hard-coded strings by using the str_yes_no() helper function.
Signed-off-by Thorsten Blum <[email protected]>
--- arch/alpha/kernel/pci_iommu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/alpha/kernel/pci_iommu.c +2 -1
@@ -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; }
Signature · 1 line
2.48.1
Quoted 3 lines · Thorsten Blum
Remove hard-coded strings by using the
str_yes_no()helper function.Signed-off-by Thorsten Blum <[email protected]>
Reviewed-by Geert Uytterhoeven <[email protected]>
Can't test it, though, my UDB died +20y ago...
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds