diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-04-20 09:45:43 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-04-22 05:45:24 +0300 |
commit | 4d32758671527761e6ee94568b8e32925c4bc682 (patch) | |
tree | 796a93eb74b2d9b73f8b84c0e3f92c4c5b6e3557 /drivers/clk/clk.c | |
parent | 56f2150a841ca0915d43e7b9033a4557bc829cc0 (diff) | |
download | linux-4d32758671527761e6ee94568b8e32925c4bc682.tar.xz |
clk: Replace four seq_printf() calls by seq_putc()
Four single characters should be put into a sequence.
Thus use the corresponding function "seq_putc".
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index cddddbe46d9d..3e5562a161a4 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2083,11 +2083,11 @@ static void clk_dump_subtree(struct seq_file *s, struct clk_core *c, int level) clk_dump_one(s, c, level); hlist_for_each_entry(child, &c->children, child_node) { - seq_printf(s, ","); + seq_putc(s, ','); clk_dump_subtree(s, child, level + 1); } - seq_printf(s, "}"); + seq_putc(s, '}'); } static int clk_dump(struct seq_file *s, void *data) @@ -2096,14 +2096,13 @@ static int clk_dump(struct seq_file *s, void *data) bool first_node = true; struct hlist_head **lists = (struct hlist_head **)s->private; - seq_printf(s, "{"); - + seq_putc(s, '{'); clk_prepare_lock(); for (; *lists; lists++) { hlist_for_each_entry(c, *lists, child_node) { if (!first_node) - seq_puts(s, ","); + seq_putc(s, ','); first_node = false; clk_dump_subtree(s, c, 0); } |