diff options
| author | Marco Felsch <[email protected]> | 2022-12-16 11:35:44 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2023-02-03 14:53:13 +0100 |
| commit | 9d33802c8bcf96c4099ffea4f392afa52897e556 (patch) | |
| tree | 02dfce3a4ad3f3eb78b8786de0309e8a82826a65 /tools/perf/scripts/python/compaction-times.py | |
| parent | 0605081142070a41de8f1deb8fdaeb8677e97741 (diff) | |
media: i2c: tc358746: fix ignoring read error in g_register callback
Currently we ignore the return value of tc358746_read() and return
alawys return 0 which is wrong. Fix this by returning the actual return
value of the read operation which is either 0 on success or an error
value.
Addresses-Coverity-ID: 1527254 ("Error handling issues")
Reported-by: coverity-bot <[email protected]>
Fixes: 80a21da36051 ("media: tc358746: add Toshiba TC358746 Parallel to CSI-2 bridge driver")
Signed-off-by: Marco Felsch <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions