Commit d8b45ee4 authored by Su Hui's avatar Su Hui Committed by Hans Verkuil

media: platform: exynos4-is: return callee's error code rather than -ENXIO

Clang static analyzer complains that value stored to 'ret' is never read.
Return the callee's error code to fix this.
Signed-off-by: default avatarSu Hui <suhui@nfschina.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 20a4ecc7
...@@ -814,7 +814,7 @@ static int fimc_clk_get(struct fimc_dev *fimc) ...@@ -814,7 +814,7 @@ static int fimc_clk_get(struct fimc_dev *fimc)
fimc_clk_put(fimc); fimc_clk_put(fimc);
dev_err(&fimc->pdev->dev, "failed to get clock: %s\n", dev_err(&fimc->pdev->dev, "failed to get clock: %s\n",
fimc_clocks[i]); fimc_clocks[i]);
return -ENXIO; return ret;
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment