PNP: isapnp: use str_plural() to simplify the code

Use the string choice helper function str_plural() to simplify the code.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Link: https://patch.msgid.link/20250818082451.497935-1-zhao.xichao@vivo.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
pull/1354/merge
Xichao Zhao 2025-08-18 16:24:51 +08:00 committed by Rafael J. Wysocki
parent 1b237f190e
commit b8db5517fe
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@
#include <linux/init.h>
#include <linux/isapnp.h>
#include <linux/mutex.h>
#include <linux/string_choices.h>
#include <asm/io.h>
#include "../base.h"
@ -1037,7 +1038,7 @@ static int __init isapnp_init(void)
if (cards)
printk(KERN_INFO
"isapnp: %i Plug & Play card%s detected total\n", cards,
cards > 1 ? "s" : "");
str_plural(cards));
else
printk(KERN_INFO "isapnp: No Plug & Play card found\n");