From: Thorsten Blum <thorsten.blum@linux.dev>
To: Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH RESEND] stm class: remove unnecessary local variable in stm_write
Date: Thu, 4 Jun 2026 17:25:11 +0200 [thread overview]
Message-ID: <aiGY109NSk8TWV0F@linux.dev> (raw)
In-Reply-To: <20260508144705.3940-3-thorsten.blum@linux.dev>
Gentle ping?
On Fri, May 08, 2026 at 04:47:06PM +0200, Thorsten Blum wrote:
> The local error variable and the corresponding if check in stm_write()
> are unnecessary. Remove them.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---
> drivers/hwtracing/stm/core.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c
> index f48c6a8a0654..edf3d69a84a9 100644
> --- a/drivers/hwtracing/stm/core.c
> +++ b/drivers/hwtracing/stm/core.c
> @@ -602,17 +602,11 @@ static ssize_t notrace
> stm_write(struct stm_device *stm, struct stm_output *output,
> unsigned int chan, const char *buf, size_t count, struct stm_source_data *source)
> {
> - int err;
> -
> /* stm->pdrv is serialized against policy_mutex */
> if (!stm->pdrv)
> return -ENODEV;
>
> - err = stm->pdrv->write(stm->data, output, chan, buf, count, source);
> - if (err < 0)
> - return err;
> -
> - return err;
> + return stm->pdrv->write(stm->data, output, chan, buf, count, source);
> }
>
> static ssize_t stm_char_write(struct file *file, const char __user *buf,
next prev parent reply other threads:[~2026-06-04 15:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-08 14:47 [PATCH RESEND] stm class: remove unnecessary local variable in stm_write Thorsten Blum
2026-06-04 15:25 ` Thorsten Blum [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-03-18 0:25 [PATCH RESEND] stm class: Remove " Thorsten Blum
2026-01-26 0:43 Thorsten Blum
2026-01-26 6:33 ` Alexander Shishkin
2026-01-26 7:55 ` Thorsten Blum
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=aiGY109NSk8TWV0F@linux.dev \
--to=thorsten.blum@linux.dev \
--cc=alexander.shishkin@linux.intel.com \
--cc=alexandre.torgue@foss.st.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.