Skip to contentSkip to conversation

dmaengine: ptdma: Omit two seq_puts() calls in pt_debugfs_info_show()

PATCH New Markus Elfring 1 participant 1 message Jun 5

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: ptdma: Omit two seq_puts() calls in pt_debugfs_info_show()

From: Markus Elfring <[email protected]>
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.

---
 drivers/dma/amd/ptdma/ptdma-debugfs.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/dma/amd/ptdma/ptdma-debugfs.c +2 -3
index c7c90bbf6fd8..6323e27a6f0c 100644
@@ -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;
 }
Signature · 1 line
2.54.0