]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
m68k: amiga: Use str_plural() to fix Coccinelle warning
authorThorsten Blum <thorsten.blum@toblux.com>
Fri, 12 Apr 2024 21:57:07 +0000 (23:57 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 29 Apr 2024 14:45:53 +0000 (16:45 +0200)
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>
arch/m68k/amiga/config.c

index 99718f3dc686717c9e4756e3dce0cdf6793b8144..d4b170c861bf029b068c1d6fa9af2a98123a4419 100644 (file)
@@ -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