aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-imx.c
diff options
context:
space:
mode:
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>2024-08-06 11:45:37 +0200
committerAndi Shyti <andi.shyti@kernel.org>2024-09-10 00:33:54 +0200
commitab5bd055e4dbb849d5d77c9a6d908e6f3bed58ed (patch)
treefefd804249b08171bc14a4f433a7e25e831fa1cf /drivers/i2c/busses/i2c-imx.c
parent1dc8baa408a2e873f69fc356fbbc0bddb7813839 (diff)
i2c: mt65xx: Avoid double initialization of restart_flag in isr
In the mtk_i2c_irq() handler, variable restart_flag is initialized to zero and then reassigned with I2C_RS_TRANSFER if and only if auto_restart is enabled. Avoid a double initialization of this variable by transferring the auto_restart check to the restart_flag declaration. This commit brings no functional changes. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-imx.c')
0 files changed, 0 insertions, 0 deletions