Commit ada092e8 authored by Hans Verkuil's avatar Hans Verkuil

media: nxp: imx-jpeg: use goto instead of return

For consistency use goto instead of return.

This fixes a smatch warning:

drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c:2792 mxc_jpeg_probe() warn: missing unwind goto?
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent f31b2cb8
......@@ -2789,7 +2789,7 @@ static int mxc_jpeg_probe(struct platform_device *pdev)
ret = mxc_jpeg_attach_pm_domains(jpeg);
if (ret < 0) {
dev_err(dev, "failed to attach power domains %d\n", ret);
return ret;
goto err_clk;
}
/* v4l2 */
......
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