Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 156872f

Browse files
Jiapeng Chonggeertu
authored andcommitted
zorro: Use str_plural() in amiga_zorro_probe()
Use the existing str_plural() function rather than duplicating its implementation. ./drivers/zorro/zorro.c:155:22-39: opportunity for str_plural(zorro_num_autocon). Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9350 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/20240618073205.65303-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
1 parent ed58ae8 commit 156872f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/zorro/zorro.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <linux/platform_device.h>
1919
#include <linux/dma-mapping.h>
2020
#include <linux/slab.h>
21+
#include <linux/string_choices.h>
2122

2223
#include <asm/byteorder.h>
2324
#include <asm/setup.h>
@@ -152,7 +153,7 @@ static int __init amiga_zorro_probe(struct platform_device *pdev)
152153
platform_set_drvdata(pdev, bus);
153154

154155
pr_info("Zorro: Probing AutoConfig expansion devices: %u device%s\n",
155-
zorro_num_autocon, zorro_num_autocon == 1 ? "" : "s");
156+
zorro_num_autocon, str_plural(zorro_num_autocon));
156157

157158
/* First identify all devices ... */
158159
for (i = 0; i < zorro_num_autocon; i++) {

0 commit comments

Comments
 (0)