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:
parent
f31b2cb85f
commit
ada092e80c
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue