From: Linus Walleij <linus.walleij@linaro.org>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: Bartosz Golaszewski <brgl@bgdev.pl>, linux-gpio@vger.kernel.org
Subject: Re: [PATCH] gpio: virtuser: avoid strlen() in gpio_virtuser_direction_do_read()
Date: Mon, 10 Nov 2025 23:07:22 +0100 [thread overview]
Message-ID: <CACRpkdaLSM3jDPSL1oQiMhyoMJ4dkcvdL7hYsCimM6E9+=76Kg@mail.gmail.com> (raw)
In-Reply-To: <20251101074131.353640-2-dmantipov@yandex.ru>
On Sat, Nov 1, 2025 at 8:41 AM Dmitry Antipov <dmantipov@yandex.ru> wrote:
> Since 'snprintf()' returns the number of characters emitted and buffer
> size guarantees that there will be no overflow, an extra call to
> 'strlen()' in 'gpio_virtuser_direction_do_read()' may be dropped.
>
> Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
next prev parent reply other threads:[~2025-11-10 22:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-01 7:41 [PATCH] gpio: gpiolib: replace deprecated strcpy() with strscpy() Dmitry Antipov
2025-11-01 7:41 ` [PATCH] gpio: virtuser: avoid strlen() in gpio_virtuser_direction_do_read() Dmitry Antipov
2025-11-10 22:07 ` Linus Walleij [this message]
2025-11-12 9:43 ` Andy Shevchenko
2025-11-10 22:06 ` [PATCH] gpio: gpiolib: replace deprecated strcpy() with strscpy() Linus Walleij
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='CACRpkdaLSM3jDPSL1oQiMhyoMJ4dkcvdL7hYsCimM6E9+=76Kg@mail.gmail.com' \
--to=linus.walleij@linaro.org \
--cc=brgl@bgdev.pl \
--cc=dmantipov@yandex.ru \
--cc=linux-gpio@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).