cris: remove use of seq_printf return value
The seq_printf return value, because it's frequently misused,
will eventually be converted to void.
See: commit 1f33c41c03
("seq_file: Rename seq_overflow() to
seq_has_overflowed() and make public")
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
58a1aa7c83
commit
1336d4221d
@@ -63,7 +63,7 @@ int show_cpuinfo(struct seq_file *m, void *v)
|
|||||||
else
|
else
|
||||||
info = &cpu_info[revision];
|
info = &cpu_info[revision];
|
||||||
|
|
||||||
return seq_printf(m,
|
seq_printf(m,
|
||||||
"processor\t: 0\n"
|
"processor\t: 0\n"
|
||||||
"cpu\t\t: CRIS\n"
|
"cpu\t\t: CRIS\n"
|
||||||
"cpu revision\t: %lu\n"
|
"cpu revision\t: %lu\n"
|
||||||
@@ -92,6 +92,8 @@ int show_cpuinfo(struct seq_file *m, void *v)
|
|||||||
info->flags & HAS_USB ? "yes" : "no",
|
info->flags & HAS_USB ? "yes" : "no",
|
||||||
(loops_per_jiffy * HZ + 500) / 500000,
|
(loops_per_jiffy * HZ + 500) / 500000,
|
||||||
((loops_per_jiffy * HZ + 500) / 5000) % 100);
|
((loops_per_jiffy * HZ + 500) / 5000) % 100);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_PROC_FS */
|
#endif /* CONFIG_PROC_FS */
|
||||||
|
@@ -77,7 +77,7 @@ int show_cpuinfo(struct seq_file *m, void *v)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return seq_printf(m,
|
seq_printf(m,
|
||||||
"processor\t: %d\n"
|
"processor\t: %d\n"
|
||||||
"cpu\t\t: CRIS\n"
|
"cpu\t\t: CRIS\n"
|
||||||
"cpu revision\t: %lu\n"
|
"cpu revision\t: %lu\n"
|
||||||
@@ -107,6 +107,8 @@ int show_cpuinfo(struct seq_file *m, void *v)
|
|||||||
info->flags & HAS_USB ? "yes" : "no",
|
info->flags & HAS_USB ? "yes" : "no",
|
||||||
(loops_per_jiffy * HZ + 500) / 500000,
|
(loops_per_jiffy * HZ + 500) / 500000,
|
||||||
((loops_per_jiffy * HZ + 500) / 5000) % 100);
|
((loops_per_jiffy * HZ + 500) / 5000) % 100);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_PROC_FS */
|
#endif /* CONFIG_PROC_FS */
|
||||||
|
Reference in New Issue
Block a user