Commit bd622532 authored by Thorsten Blum's avatar Thorsten Blum Committed by Geert Uytterhoeven
Browse files

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: default avatarThorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20240412215704.204403-4-thorsten.blum@toblux.com


Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent d301a71c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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