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: <2f694a65-218a-48cc-b0e6-fcca6aaf646f@web.de>
Date: Sat, 13 Jul 2024 12:55:09 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: dmaengine@...r.kernel.org, kernel-janitors@...r.kernel.org,
 Vinod Koul <vkoul@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] dmaengine: Use seq_putc() in two functions

From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 13 Jul 2024 12:30: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/dma/dmaengine.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c
index c380a4dda77a..d098de909b1e 100644
--- a/drivers/dma/dmaengine.c
+++ b/drivers/dma/dmaengine.c
@@ -94,7 +94,7 @@ static void dmaengine_dbg_summary_show(struct seq_file *s,
 				seq_printf(s, " (via router: %s)\n",
 					dev_name(chan->router->dev));
 			else
-				seq_puts(s, "\n");
+				seq_putc(s, '\n');
 		}
 	}
 }
@@ -115,7 +115,7 @@ static int dmaengine_summary_show(struct seq_file *s, void *data)
 			dmaengine_dbg_summary_show(s, dma_dev);

 		if (!list_is_last(&dma_dev->global_node, &dma_device_list))
-			seq_puts(s, "\n");
+			seq_putc(s, '\n');
 	}
 	mutex_unlock(&dma_list_mutex);

--
2.45.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ