Marco Felsch 9d33802c8b 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 <keescook+coverity-bot@chromium.org>
Fixes: 80a21da36051 ("media: tc358746: add Toshiba TC358746 Parallel to CSI-2 bridge driver")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-02-03 14:53:13 +01:00
..
2022-12-13 19:29:45 -08:00
2022-12-16 03:54:54 -08:00
2022-03-18 05:58:35 +01:00
2022-03-23 14:51:35 -07:00
2022-12-13 11:36:58 -08:00
2022-03-12 16:59:52 +01:00