diff mbox series

usb: uvcvideo: remove unneeded goto

Message ID 20220616195454.2983249-1-m.grzeschik@pengutronix.de
State Accepted
Commit 1fef11a2f4660a48ed1a655d55226d930cb8ba13
Headers show
Series usb: uvcvideo: remove unneeded goto | expand

Commit Message

Michael Grzeschik June 16, 2022, 7:54 p.m. UTC
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>
---
 drivers/media/usb/uvc/uvc_v4l2.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/media/usb/uvc/uvc_v4l2.c b/drivers/media/usb/uvc/uvc_v4l2.c
index 26cf0517e36195..957f44f44a9a14 100644
--- a/drivers/media/usb/uvc/uvc_v4l2.c
+++ b/drivers/media/usb/uvc/uvc_v4l2.c
@@ -254,7 +254,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
 	 * negotiation with the device. Some devices return invalid bFormatIndex
@@ -300,7 +300,6 @@  static int uvc_v4l2_try_format(struct uvc_streaming *stream,
 	if (uvc_frame != NULL)
 		*uvc_frame = frame;
 
-done:
 	return ret;
 }