lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <9142662e-e709-48fa-9ac2-a4fc16e6228c@web.de>
Date: Sat, 13 Jul 2024 16:43:17 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: kernel-janitors@...r.kernel.org, Liam Girdwood <lgirdwood@...il.com>,
 Mark Brown <broonie@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] regulator: core: Use seq_putc() in
 regulator_summary_show_subtree()

From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 13 Jul 2024 16:36:30 +0200

Single characters (line breaks) should be put into a sequence.
Thus use the corresponding function “seq_putc”.

This issue was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
 drivers/regulator/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 7674b7f2df14..3200bf129fc6 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -6099,7 +6099,7 @@ static void regulator_summary_show_subtree(struct seq_file *s,
 		}
 	}

-	seq_puts(s, "\n");
+	seq_putc(s, '\n');

 	list_for_each_entry(consumer, &rdev->consumer_list, list) {
 		if (consumer->dev && consumer->dev->class == &regulator_class)
@@ -6125,7 +6125,7 @@ static void regulator_summary_show_subtree(struct seq_file *s,
 			break;
 		}

-		seq_puts(s, "\n");
+		seq_putc(s, '\n');
 	}

 	summary_data.s = s;
--
2.45.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ