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 <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent d301a71 commit bd62253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)