Skip to content

Commit 0efbca0

Browse files
tobluxDinh Nguyen
authored andcommitted
nios2: Use str_yes_no() helper in show_cpuinfo()
Remove hard-coded strings by using the str_yes_no() helper function. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
1 parent 40384c8 commit 0efbca0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/nios2/kernel/cpuinfo.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ static int show_cpuinfo(struct seq_file *m, void *v)
143143
" DIV:\t\t%s\n"
144144
" BMX:\t\t%s\n"
145145
" CDX:\t\t%s\n",
146-
cpuinfo.has_mul ? "yes" : "no",
147-
cpuinfo.has_mulx ? "yes" : "no",
148-
cpuinfo.has_div ? "yes" : "no",
149-
cpuinfo.has_bmx ? "yes" : "no",
150-
cpuinfo.has_cdx ? "yes" : "no");
146+
str_yes_no(cpuinfo.has_mul),
147+
str_yes_no(cpuinfo.has_mulx),
148+
str_yes_no(cpuinfo.has_div),
149+
str_yes_no(cpuinfo.has_bmx),
150+
str_yes_no(cpuinfo.has_cdx));
151151

152152
seq_printf(m,
153153
"Icache:\t\t%ukB, line length: %u\n",

0 commit comments

Comments
 (0)