From: Markus Elfring <Markus.Elfring@web.de>
To: dmaengine@vger.kernel.org,
Basavaraj Natikar <Basavaraj.Natikar@amd.com>,
Frank Li <Frank.Li@kernel.org>, Vinod Koul <vkoul@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] dmaengine: ptdma: Omit two seq_puts() calls in pt_debugfs_info_show()
Date: Fri, 5 Jun 2026 11:04:36 +0200 [thread overview]
Message-ID: <42c86c97-9476-4a4c-a831-9ae28d77bdcb@web.de> (raw)
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
reply other threads:[~2026-06-05 9:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42c86c97-9476-4a4c-a831-9ae28d77bdcb@web.de \
--to=markus.elfring@web.de \
--cc=Basavaraj.Natikar@amd.com \
--cc=Frank.Li@kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox