DORMANTno replies

[PATCH] staging: vme_user: Use str_enabled_disabled() helper

From: Svyatoslav Nikolenko <hidden>
Date: 2026-08-27 10:28:06
Also in: lkml
Subsystem: staging subsystem, the rest, vme subsystem · Maintainers: Greg Kroah-Hartman, Linus Torvalds

Replace the hardcoded ternary operator with the str_enabled_disabled()
helper function to standardize string formatting.

Reported-by: coccicheck
Signed-off-by: Svyatoslav Nikolenko <redacted>
---
 drivers/staging/vme_user/vme_tsi148.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/vme_user/vme_tsi148.c b/drivers/staging/vme_user/vme_tsi148.c
index c695ad9b4ca2..9447c00bc013 100644
--- a/drivers/staging/vme_user/vme_tsi148.c
+++ b/drivers/staging/vme_user/vme_tsi148.c
@@ -26,6 +26,7 @@
 #include <linux/io.h>
 #include <linux/uaccess.h>
 #include <linux/byteorder/generic.h>
+#include <linux/string_choices.h>
 
 #include "vme.h"
 #include "vme_bridge.h"
@@ -2458,7 +2459,7 @@ static int tsi148_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 			 geoid);
 
 	dev_info(&pdev->dev, "VME Write and flush and error check is %s\n",
-		 err_chk ? "enabled" : "disabled");
+		 str_enabled_disabled(err_chk));
 
 	retval = tsi148_crcsr_init(tsi148_bridge, pdev);
 	if (retval) {
-- 
2.47.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help