Skip to content

Commit bd62253

Browse files
tobluxgeertu
authored andcommitted
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>
1 parent d301a71 commit bd62253

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/m68k/amiga/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ static void amiga_get_hardware_list(struct seq_file *m)
836836
seq_printf(m, "\tZorro II%s AutoConfig: %d Expansion "
837837
"Device%s\n",
838838
AMIGAHW_PRESENT(ZORRO3) ? "I" : "",
839-
zorro_num_autocon, zorro_num_autocon == 1 ? "" : "s");
839+
zorro_num_autocon, str_plural(zorro_num_autocon));
840840
#endif /* CONFIG_ZORRO */
841841

842842
#undef AMIGAHW_ANNOUNCE

0 commit comments

Comments
 (0)