Commit 1fef11a2 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Mauro Carvalho Chehab
Browse files

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: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
Reviewed-by: default avatarPaul Elder <paul.elder@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent eff1e24c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -258,7 +258,7 @@ static int uvc_v4l2_try_format(struct uvc_streaming *stream,
	ret = uvc_probe_video(stream, probe);
	mutex_unlock(&stream->mutex);
	if (ret < 0)
		goto done;
		return ret;

	/*
	 * 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)
		*uvc_frame = frame;

done:
	return ret;
}