[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <6D495929-0881-4B38-BFD1-4C55135C7A7D@linux.dev>
Date: Mon, 26 Jan 2026 08:55:02 +0100
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH RESEND] stm class: Remove unnecessary local variable in
stm_write
On 26. Jan 2026, at 07:33, Alexander Shishkin wrote:
> Thorsten Blum <thorsten.blum@...ux.dev> writes:
>
>> The local variable 'err' and the corresponding if check in stm_write()
>> are unnecessary. Remove them.
>
> Nice catch! Is this a result of manual code inspection or were any tools
> used, an AI agent or a coccinelle script or whatnot?
Manual code inspection. I think I stumbled upon it when I was working on
https://lore.kernel.org/lkml/20250909102512.694203-2-thorsten.blum@linux.dev/
https://lore.kernel.org/lkml/20250909102512.694203-4-thorsten.blum@linux.dev/
which are also still pending. Could you take a look at all three patches
while you're at it?
Thanks,
Thorsten
Powered by blists - more mailing lists