Skip to content

Commit

Permalink
media: uvcvideo: Remove unneeded goto
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Paul Elder <[email protected]>
Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mgrzeschik authored and mchehab committed Jul 16, 2022
1 parent eff1e24 commit 1fef11a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/usb/uvc/uvc_v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -305,7 +305,6 @@ static int uvc_v4l2_try_format(struct uvc_streaming *stream,
if (uvc_frame != NULL)
*uvc_frame = frame;

done:
return ret;
}

Expand Down

0 comments on commit 1fef11a

Please sign in to comment.