summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/tc358746.c
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2022-12-16 11:35:43 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-02-03 14:52:52 +0100
commit0605081142070a41de8f1deb8fdaeb8677e97741 (patch)
tree85bdd2289bc62571f4f799be2b68e0e3e268cf34 /drivers/media/i2c/tc358746.c
parentdd74ed6c213003533e3abf4c204374ef01d86978 (diff)
media: i2c: tc358746: fix missing return assignment
It was intended to return an error if tc358746_update_bits() call fail. Fix this by storing the return code. Addresses-Coverity-ID: 1527252 ("Control flow 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>
Diffstat (limited to 'drivers/media/i2c/tc358746.c')
-rw-r--r--drivers/media/i2c/tc358746.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/tc358746.c b/drivers/media/i2c/tc358746.c
index d1f552bd81d4..e7f27cbb5790 100644
--- a/drivers/media/i2c/tc358746.c
+++ b/drivers/media/i2c/tc358746.c
@@ -406,7 +406,7 @@ tc358746_apply_pll_config(struct tc358746 *tc358746)
val = PLL_FRS(ilog2(post)) | RESETB | PLL_EN;
mask = PLL_FRS_MASK | RESETB | PLL_EN;
- tc358746_update_bits(tc358746, PLLCTL1_REG, mask, val);
+ err = tc358746_update_bits(tc358746, PLLCTL1_REG, mask, val);
if (err)
return err;