summaryrefslogtreecommitdiff
path: root/drivers/eisa
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-07-24 23:32:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-31 14:21:14 +0200
commit63d436b42395d714c3a1c55e0c42733a26673460 (patch)
tree1aa431c27b6aca61893d96a64b9792a377da582d /drivers/eisa
parentc8295feb756f5e3ccf02c14a90a2ee0aed95e409 (diff)
EISA: Use str_plural() in eisa_probe()
Replace the manual ternary "s" pluralization with str_plural() to simplify the code. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20260724213204.251083-2-thorsten.blum@linux.dev Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/eisa')
-rw-r--r--drivers/eisa/eisa-bus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/eisa/eisa-bus.c b/drivers/eisa/eisa-bus.c
index 79ab44fe26aa..73c4ba3dc0bc 100644
--- a/drivers/eisa/eisa-bus.c
+++ b/drivers/eisa/eisa-bus.c
@@ -12,6 +12,7 @@
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/slab.h>
+#include <linux/string_choices.h>
#include <linux/ioport.h>
#include <asm/io.h>
@@ -393,7 +394,7 @@ static int __init eisa_probe(struct eisa_root_device *root)
}
}
- dev_info(root->dev, "EISA: Detected %d card%s\n", c, c == 1 ? "" : "s");
+ dev_info(root->dev, "EISA: Detected %d card%s\n", c, str_plural(c));
return 0;
}