]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: i2c: ds90ub960: Fix missing return check on ub960_rxport_read call
authorColin Ian King <colin.i.king@gmail.com>
Wed, 2 Oct 2024 16:53:29 +0000 (17:53 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 16 Oct 2024 07:32:41 +0000 (09:32 +0200)
commit24ad2d1f773a11f69eecec3ec37ea3d76f2e9e7d
treedb62db5e1ba9225a8d5800f85542e1799b95c4ec
parentfd0e579bc62cb1766469866a89471d2d8c8b721d
media: i2c: ds90ub960: Fix missing return check on ub960_rxport_read call

The function ub960_rxport_read is being called and afterwards ret is
being checked for any failures, however ret is not being assigned to
the return of the function call. Fix this by assigning ret to the
return of the call which appears to be missing.

Fixes: afe267f2d368 ("media: i2c: add DS90UB960 driver")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ds90ub960.c