Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ccc0ddf authored by Markus Elfring's avatar Markus Elfring Committed by Stephen Boyd
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 9f776722
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -3021,13 +3021,13 @@ 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",
		seq_puts(s,
			 of_clk_get_parent_name(core->of_node,
						core->parents[i].index));
	else