aboutsummaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorGravatar Thorsten Blum <thorsten.blum@toblux.com> 2024-04-12 23:57:07 +0200
committerGravatar Geert Uytterhoeven <geert@linux-m68k.org> 2024-04-29 16:45:53 +0200
commitbd622532f7b35805d6afde38639b0d631fda818b (patch)
tree9cfafd43cab380c0dfef749a6b1a4ac2009a98bf /arch/m68k
parentmacintosh/via-macii: Fix "BUG: sleeping function called from invalid context" (diff)
downloadlinux-bd622532f7b35805d6afde38639b0d631fda818b.tar.gz
linux-bd622532f7b35805d6afde38639b0d631fda818b.tar.bz2
linux-bd622532f7b35805d6afde38639b0d631fda818b.zip
m68k: amiga: Use str_plural() to fix Coccinelle warning
Fixes the following Coccinelle/coccicheck warning reported by string_choices.cocci: opportunity for str_plural(zorro_num_autocon) Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/20240412215704.204403-4-thorsten.blum@toblux.com Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/amiga/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c
index 99718f3dc686..d4b170c861bf 100644
--- a/arch/m68k/amiga/config.c
+++ b/arch/m68k/amiga/config.c
@@ -836,7 +836,7 @@ static void amiga_get_hardware_list(struct seq_file *m)
seq_printf(m, "\tZorro II%s AutoConfig: %d Expansion "
"Device%s\n",
AMIGAHW_PRESENT(ZORRO3) ? "I" : "",
- zorro_num_autocon, zorro_num_autocon == 1 ? "" : "s");
+ zorro_num_autocon, str_plural(zorro_num_autocon));
#endif /* CONFIG_ZORRO */
#undef AMIGAHW_ANNOUNCE