Skip to content

Commit

Permalink
m68k: amiga: Use str_plural() to fix Coccinelle warning
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
toblux authored and geertu committed Apr 29, 2024
1 parent d301a71 commit bd62253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/m68k/amiga/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd62253

Please sign in to comment.