mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dmaengine: ptdma: Omit two seq_puts() calls in pt_debugfs_info_show()
@ 2026-06-05  9:04 Markus Elfring
  0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2026-06-05  9:04 UTC (permalink / raw)
  To: dmaengine, Basavaraj Natikar, Frank Li, Vinod Koul; +Cc: LKML

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Fri, 5 Jun 2026 10:55:59 +0200

Move data from two seq_puts() calls to a subsequent seq_printf() call.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/dma/amd/ptdma/ptdma-debugfs.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/dma/amd/ptdma/ptdma-debugfs.c b/drivers/dma/amd/ptdma/ptdma-debugfs.c
index c7c90bbf6fd8..6323e27a6f0c 100644
--- a/drivers/dma/amd/ptdma/ptdma-debugfs.c
+++ b/drivers/dma/amd/ptdma/ptdma-debugfs.c
@@ -41,9 +41,8 @@ static int pt_debugfs_info_show(struct seq_file *s, void *p)
 	regval = ioread32(pt->io_regs + CMD_PT_VERSION);
 
 	seq_printf(s, "    Version: %d\n", regval & RI_VERSION_NUM);
-	seq_puts(s, "    Engines:");
-	seq_puts(s, "\n");
-	seq_printf(s, "     Queues: %d\n", (regval & RI_NUM_VQM) >> RI_NVQM_SHIFT);
+	seq_printf(s, "    Engines:\n     Queues: %d\n",
+		   (regval & RI_NUM_VQM) >> RI_NVQM_SHIFT);
 
 	return 0;
 }
-- 
2.54.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-05  9:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-05  9:04 [PATCH] dmaengine: ptdma: Omit two seq_puts() calls in pt_debugfs_info_show() Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®