Commit 156872f0 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Geert Uytterhoeven

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: default avatarAbaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9350Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20240618073205.65303-1-jiapeng.chong@linux.alibaba.comSigned-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent ed58ae85
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/string_choices.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
#include <asm/setup.h> #include <asm/setup.h>
...@@ -152,7 +153,7 @@ static int __init amiga_zorro_probe(struct platform_device *pdev) ...@@ -152,7 +153,7 @@ static int __init amiga_zorro_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, bus); platform_set_drvdata(pdev, bus);
pr_info("Zorro: Probing AutoConfig expansion devices: %u device%s\n", pr_info("Zorro: Probing AutoConfig expansion devices: %u device%s\n",
zorro_num_autocon, zorro_num_autocon == 1 ? "" : "s"); zorro_num_autocon, str_plural(zorro_num_autocon));
/* First identify all devices ... */ /* First identify all devices ... */
for (i = 0; i < zorro_num_autocon; i++) { for (i = 0; i < zorro_num_autocon; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment