Commit 51b6f738 authored by Liu Song's avatar Liu Song Committed by Martin K. Petersen
Browse files

scsi: ufs: core: Use str_true_false() helper in UFS_FLAG()



Remove hard-coded strings by using the str_true_false() helper function.

Signed-off-by: default avatarLiu Song <liu.song13@zte.com.cn>
Link: https://lore.kernel.org/r/20250721200138431dOU9KyajGyGi5339ma26p@zte.com.cn


Reviewed-by: default avatarPeter Wang <peter.wang@mediatek.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 37c4e72b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
#include <linux/string.h>
#include <linux/bitfield.h>
#include <linux/unaligned.h>
#include <linux/string_choices.h>

#include <ufs/ufs.h>
#include <ufs/unipro.h>
@@ -1516,7 +1517,7 @@ static ssize_t _name##_show(struct device *dev, \
		ret = -EINVAL;						\
		goto out;						\
	}								\
	ret = sysfs_emit(buf, "%s\n", flag ? "true" : "false");		\
	ret = sysfs_emit(buf, "%s\n", str_true_false(flag));		\
out:									\
	up(&hba->host_sem);						\
	return ret;							\