Commit bb594fb
media: i2c: imx477: Fix uninitialized bug when restarting camera
In imx477_start_streaming, when restarting before the auto-suspend
timeout (5s) so that the common register config write was skipped,
"ret" was used uninitialized, leading to intermittent failure.
(Since return values are fully checked after the common write,
there is anyway no need to propagate ret to mode-specific write.)
Signed-off-by: Nick Hollinghurst <[email protected]>1 parent 3048c88 commit bb594fb
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1599 | 1599 | | |
1600 | 1600 | | |
1601 | 1601 | | |
1602 | | - | |
1603 | | - | |
| 1602 | + | |
| 1603 | + | |
1604 | 1604 | | |
1605 | 1605 | | |
1606 | 1606 | | |
| |||
0 commit comments