[<prev] [next>] [day] [month] [year] [list]
Message-ID: <7a79ee59-884a-b769-5e07-37db57687f83@web.de>
Date: Mon, 1 Jul 2019 21:50:31 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: linux-pm@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Kevin Hilman <khilman@...nel.org>,
Len Brown <len.brown@...el.com>, Pavel Machek <pavel@....cz>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Ulf Hansson <ulf.hansson@...aro.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH] PM / Domains: Use seq_puts() in genpd_summary_one()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Mon, 1 Jul 2019 21:42:31 +0200
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@...rs.sourceforge.net>
---
drivers/base/power/domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 33c30c1e6a30..7dd433fab7ec 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -2796,7 +2796,7 @@ static int genpd_summary_one(struct seq_file *s,
* Also genpd->name is immutable.
*/
list_for_each_entry(link, &genpd->master_links, master_node) {
- seq_printf(s, "%s", link->slave->name);
+ seq_puts(s, link->slave->name);
if (!list_is_last(&link->master_node, &genpd->master_links))
seq_puts(s, ", ");
}
--
2.22.0
Powered by blists - more mailing lists