]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: stm32: Omit two variable reassignments in stm32_i2c_dma_request()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 20 Oct 2025 11:33:12 +0000 (13:33 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Mon, 27 Oct 2025 13:17:15 +0000 (14:17 +0100)
commitb4cc81803033cbfd67fed1db7d8914bc5f299106
treeaac7e57787d0568b7fff1c0b828c103dbe02b084
parentacff9f26664e3f93e5e98f4d7170cc32d87f53e4
i2c: stm32: Omit two variable reassignments in stm32_i2c_dma_request()

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@users.sourceforge.net>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/f7e0c023-d2d1-40ba-badb-74a7e9c23684@web.de
drivers/i2c/busses/i2c-stm32.c