[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240618073205.65303-1-jiapeng.chong@linux.alibaba.com>
Date: Tue, 18 Jun 2024 15:32:05 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: geert@...ux-m68k.org
Cc: linux-m68k@...ts.linux-m68k.org,
linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH] zorro: Use str_plural() in amiga_zorro_probe()
Use 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@...ux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9350
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
drivers/zorro/zorro.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/zorro/zorro.c b/drivers/zorro/zorro.c
index 2196474ce6ef..2fca9115fc73 100644
--- a/drivers/zorro/zorro.c
+++ b/drivers/zorro/zorro.c
@@ -152,7 +152,7 @@ static int __init amiga_zorro_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, bus);
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 ... */
for (i = 0; i < zorro_num_autocon; i++) {
--
2.20.1.7.g153144c
Powered by blists - more mailing lists