diff mbox series

dmaengine: Use seq_putc() in two functions

Message ID 2f694a65-218a-48cc-b0e6-fcca6aaf646f@web.de (mailing list archive)
State Changes Requested
Headers show
Series dmaengine: Use seq_putc() in two functions | expand

Commit Message

Markus Elfring July 13, 2024, 10:55 a.m. UTC
From: Markus Elfring <elfring@users.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@users.sourceforge.net>
---
 drivers/dma/dmaengine.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
2.45.2
diff mbox series

Patch

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);