diff mbox series

[linux-next] PNP: replace !strcmp with sysfs_streq

Message ID 20221008080110.309089-1-ye.xingchen@zte.com.cn
State Not Applicable
Headers show
Series [linux-next] PNP: replace !strcmp with sysfs_streq | expand

Commit Message

yexingchen116@gmail.com Oct. 8, 2022, 8:01 a.m. UTC
From: ye xingchen <ye.xingchen@zte.com.cn>

Replace the open-code with sysfs_streq().

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
---
 drivers/pnp/pnpacpi/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c
index 38928ff7472b..d5748a21a7e1 100644
--- a/drivers/pnp/pnpacpi/core.c
+++ b/drivers/pnp/pnpacpi/core.c
@@ -317,7 +317,7 @@  static int __init pnpacpi_setup(char *str)
 {
 	if (str == NULL)
 		return 1;
-	if (!strncmp(str, "off", 3))
+	if (sysfs_streq(str, "off"))
 		pnpacpi_disabled = 1;
 	return 1;
 }