[PATCH] dmaengine: Use seq_putc() in two functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxxxx>
---
 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






[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux