mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 10:46:33 +00:00
media: uvcvideo: Remove unneeded goto
The goto statement in uvc_v4l2_try_format can simply be replaced by an direct return. There is no further user of the label, so remove it. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
eff1e24c8e
commit
1fef11a2f4
@ -258,7 +258,7 @@ static int uvc_v4l2_try_format(struct uvc_streaming *stream,
|
|||||||
ret = uvc_probe_video(stream, probe);
|
ret = uvc_probe_video(stream, probe);
|
||||||
mutex_unlock(&stream->mutex);
|
mutex_unlock(&stream->mutex);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto done;
|
return ret;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* After the probe, update fmt with the values returned from
|
* After the probe, update fmt with the values returned from
|
||||||
@ -305,7 +305,6 @@ static int uvc_v4l2_try_format(struct uvc_streaming *stream,
|
|||||||
if (uvc_frame != NULL)
|
if (uvc_frame != NULL)
|
||||||
*uvc_frame = frame;
|
*uvc_frame = frame;
|
||||||
|
|
||||||
done:
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user