1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

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: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
Hans Verkuil 2023-10-06 12:08:46 +02:00
parent f31b2cb85f
commit ada092e80c

View file

@ -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 */