[PATCH] i2c: stm32: Omit two variable reassignments in stm32_i2c_dma_request()

Andi Shyti andi.shyti at kernel.org
Tue Oct 21 15:50:52 PDT 2025


Hi Markus,

> An error code was assigned to a variable and checked accordingly.
> This value was passed to a dev_err_probe() call in an if branch.
> This function is documented in the way that the same value is returned.
> Thus delete two redundant variable reassignments.
> 
> The source code was transformed by using the Coccinelle software.
> 
> Signed-off-by: Markus Elfring <elfring at users.sourceforge.net>

merged to i2c/i2c-host.

Thanks,
Andi



More information about the linux-arm-kernel mailing list