diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2019-07-01 23:20:40 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-08-08 18:03:17 +0300 |
commit | 1ccc0ddf046a0197f2f9acca02a64da10aa6112d (patch) | |
tree | c88e0d8a1b238c6fb4748d229ddad1de061a3354 /drivers/clk/clk.c | |
parent | 9f7767226083d51c0674f1b71ac52daea6778b84 (diff) | |
download | linux-1ccc0ddf046a0197f2f9acca02a64da10aa6112d.tar.xz |
clk: Use seq_puts() in possible_parent_show()
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: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 991fb3a62bda..b6f50db759a4 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -3021,15 +3021,15 @@ static void possible_parent_show(struct seq_file *s, struct clk_core *core, */ parent = clk_core_get_parent_by_index(core, i); if (parent) - seq_printf(s, "%s", parent->name); + seq_puts(s, parent->name); else if (core->parents[i].name) - seq_printf(s, "%s", core->parents[i].name); + seq_puts(s, core->parents[i].name); else if (core->parents[i].fw_name) seq_printf(s, "<%s>(fw)", core->parents[i].fw_name); else if (core->parents[i].index >= 0) - seq_printf(s, "%s", - of_clk_get_parent_name(core->of_node, - core->parents[i].index)); + seq_puts(s, + of_clk_get_parent_name(core->of_node, + core->parents[i].index)); else seq_puts(s, "(missing)"); |