projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a351e9b
)
xtensa: Use seq_puts() in c_show()
author
Markus Elfring
<elfring@users.sourceforge.net>
Sun, 7 May 2017 19:24:51 +0000
(21:24 +0200)
committer
Max Filippov
<jcmvbkbc@gmail.com>
Mon, 8 May 2017 20:16:22 +0000
(13:16 -0700)
A string which did not contain a data format specification should be put
into a sequence. Thus use the corresponding function "seq_puts".
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/setup.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/xtensa/kernel/setup.c
b/arch/xtensa/kernel/setup.c
index 197e75b400b169f6014e801744cdd4030f11f370..460a226699b4f9c5fea84455ecaff2ac61e00617 100644
(file)
--- a/
arch/xtensa/kernel/setup.c
+++ b/
arch/xtensa/kernel/setup.c
@@
-594,8
+594,7
@@
c_show(struct seq_file *f, void *slot)
(ccount_freq/10000) % 100,
loops_per_jiffy/(500000/HZ),
(loops_per_jiffy/(5000/HZ)) % 100);
-
- seq_printf(f,"flags\t\t: "
+ seq_puts(f, "flags\t\t: "
#if XCHAL_HAVE_NMI
"nmi "
#endif