Skip to content

Commit ee063c2

Browse files
committed
Merge tag 'nios2_update_for_v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux
Pull nios2 fixlet from Dinh Nguyen: - Use str_yes_no() helper function * tag 'nios2_update_for_v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux: nios2: Use str_yes_no() helper in show_cpuinfo()
2 parents dea3165 + 0efbca0 commit ee063c2

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)