media: uvcvideo: Refactor uvc_v4l2_compat_ioctl32
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 9 May 2025 18:24:15 +0000 (18:24 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 16 Jun 2025 06:43:23 +0000 (08:43 +0200)
commit7651fab885ff8af11833671626722053dacb489a
tree92a1a48288c2e02ea8630c8ab6272be7ed7a2327
parent7e666b1aaccadf7ba3ba8c0d0eed5bf876b14d8e
media: uvcvideo: Refactor uvc_v4l2_compat_ioctl32

Declaring a variable for doing automatic cleanup is not a very common
pattern. Replace the cleanup macro with manual cleanup to make the code
simpler.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20250509-uvc-followup-v1-3-73bcde30d2b5@chromium.org
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/usb/uvc/uvc_v4l2.c