diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-10-03 20:53:15 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2024-10-16 10:32:40 +0300 |
commit | 0d5c92cde4d38825eeadf5b4e1534350f80a9924 (patch) | |
tree | 4ac28bd8e16f44bd036d18feaf77f69e36294079 /tools/perf/scripts/python/task-analyzer.py | |
parent | 40249b1d5b3cfea2e8eadd4b5777cf2d82b86d21 (diff) | |
download | linux-0d5c92cde4d38825eeadf5b4e1534350f80a9924.tar.xz |
media: i2c: vgxy61: Fix an error handling path in vgxy61_detect()
If cci_read() fails, 'st' is set to 0 in cci_read(), so we return success,
instead of the expected error code.
Fix it and return the expected error.
Fixes: 9a6d7f2ba2b9 ("media: i2c: st-vgxy61: Convert to CCI register access helpers")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions