提交 06050811 编写于 作者: M Marco Felsch 提交者: Mauro Carvalho Chehab

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: Ncoverity-bot <keescook+coverity-bot@chromium.org>
Fixes: 80a21da3 ("media: tc358746: add Toshiba TC358746 Parallel to CSI-2 bridge driver")
Signed-off-by: NMarco Felsch <m.felsch@pengutronix.de>
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
上级 dd74ed6c
...@@ -406,7 +406,7 @@ tc358746_apply_pll_config(struct tc358746 *tc358746) ...@@ -406,7 +406,7 @@ tc358746_apply_pll_config(struct tc358746 *tc358746)
val = PLL_FRS(ilog2(post)) | RESETB | PLL_EN; val = PLL_FRS(ilog2(post)) | RESETB | PLL_EN;
mask = PLL_FRS_MASK | 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) if (err)
return err; return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册