staging: vme_user: Use str_enabled_disabled() helper
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
Signed-off-by Svyatoslav Nikolenko <[email protected]>
--- drivers/staging/vme_user/vme_tsi148.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/vme_user/vme_tsi148.c +2 -1
@@ -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