Skip to content
Snippets Groups Projects
Unverified Commit a3b832a0 authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno
Browse files

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: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
parent 130e9cb3
No related branches found
No related tags found
No related merge requests found
Pipeline #105167 passed with stages
in 16 minutes and 7 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment