Skip to contentSkip to conversation

PM / Domains: Use seq_putc() in pm_genpd_summary_one()

PATCH New SF Markus Elfring 1 participant 1 message May 7, 2017

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM / Domains: Use seq_putc() in pm_genpd_summary_one()

From: Markus Elfring <[email protected]>
Date: Sun, 7 May 2017 22:26:19 +0200

A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc".

This issue was detected by using the Coccinelle software.

---
 drivers/base/power/domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/power/domain.c +1 -1
index da49a8383dc3..b971fbb404be 100644
@@ -2266,7 +2266,7 @@ static int pm_genpd_summary_one(struct seq_file *s,
 		kfree(kobj_path);
 	}
 
-	seq_puts(s, "\n");
+	seq_putc(s, '\n');
 exit:
 	genpd_unlock(genpd);
 
Signature · 1 line
2.12.2