Skip to content

Commit ada092e

Browse files
author
Hans Verkuil
committed
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 <[email protected]>
1 parent f31b2cb commit ada092e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2789,7 +2789,7 @@ static int mxc_jpeg_probe(struct platform_device *pdev)
27892789
ret = mxc_jpeg_attach_pm_domains(jpeg);
27902790
if (ret < 0) {
27912791
dev_err(dev, "failed to attach power domains %d\n", ret);
2792-
return ret;
2792+
goto err_clk;
27932793
}
27942794

27952795
/* v4l2 */

0 commit comments

Comments
 (0)