Skip to contentSkip to conversation

staging: vme_user: Use str_enabled_disabled() helper

PATCH New Svyatoslav Nikolenko 1 participant 1 message Aug 27

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vme_user: Use str_enabled_disabled() helper

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

Reported-by coccicheck
---
 drivers/staging/vme_user/vme_tsi148.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/vme_user/vme_tsi148.c +2 -1
index c695ad9b4ca2..9447c00bc013 100644
@@ -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) {
Signature · 1 line
2.47.3