From: Amey Narkhede <ameynarkhede03@gmail.com>
To: justin@coraid.com
Cc: axboe@kernel.dk, linux-kernel@vger.kernel.org,
linux-block@vger.kernel.org,
Amey Narkhede <ameynarkhede03@gmail.com>
Subject: [PATCH] block: aoe: Use seq_putc() if possible
Date: Sun, 20 Dec 2020 20:58:29 +0530 [thread overview]
Message-ID: <20201220152829.65094-1-ameynarkhede03@gmail.com> (raw)
This is a single character that is printed out. Use seq_putc() for
it to simplify the code.
Signed-off-by: Amey Narkhede <ameynarkhede03@gmail.com>
---
drivers/block/aoe/aoeblk.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c
index c34e71b0c4a9..742c353aff54 100644
--- a/drivers/block/aoe/aoeblk.c
+++ b/drivers/block/aoe/aoeblk.c
@@ -147,7 +147,7 @@ static int aoedisk_debugfs_show(struct seq_file *s, void *ignored)
seq_printf(s, "%c%s", c, ifp->nd->name);
c = ',';
}
- seq_puts(s, "\n");
+ seq_putc(s, '\n');
}
spin_unlock_irqrestore(&d->lock, flags);
@@ -465,4 +465,3 @@ aoeblk_init(void)
aoe_debugfs_dir = debugfs_create_dir("aoe", NULL);
return 0;
}
-
--
2.29.2
next reply other threads:[~2020-12-20 15:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-20 15:28 Amey Narkhede [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-12-21 16:04 [PATCH] block: aoe: Use seq_putc() if possible Amey Narkhede
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=20201220152829.65094-1-ameynarkhede03@gmail.com \
--to=ameynarkhede03@gmail.com \
--cc=axboe@kernel.dk \
--cc=justin@coraid.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.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;
as well as URLs for NNTP newsgroup(s).