diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-10-06 12:08:46 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-10-13 11:33:22 +0200 |
commit | ada092e80c1031208df7366c7d3798d1e7d1904a (patch) | |
tree | 21e899a7c2c8ae693a839f78e9d087019d021411 /drivers/media | |
parent | media: dvb-usb-v2: af9035: fix missing unlock (diff) | |
download | linux-ada092e80c1031208df7366c7d3798d1e7d1904a.tar.xz linux-ada092e80c1031208df7366c7d3798d1e7d1904a.zip |
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c index e74b0ed8ec5b..1fc6b3660bdd 100644 --- a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c +++ b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c @@ -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 */ |