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
parent
1b237f190e
commit
b8db5517fe
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue