diff options
| author | AngeloGioacchino Del Regno <[email protected]> | 2024-08-06 11:45:37 +0200 |
|---|---|---|
| committer | Andi Shyti <[email protected]> | 2024-09-10 00:33:54 +0200 |
| commit | ab5bd055e4dbb849d5d77c9a6d908e6f3bed58ed (patch) | |
| tree | fefd804249b08171bc14a4f433a7e25e831fa1cf /tools/perf/scripts/python | |
| parent | 1dc8baa408a2e873f69fc356fbbc0bddb7813839 (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 <[email protected]>
Signed-off-by: Andi Shyti <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions