media: uvcvideo: Refactor __uvc_ctrl_add_mapping
authorRicardo Ribalda <ribalda@chromium.org>
Tue, 3 Jan 2023 14:36:25 +0000 (15:36 +0100)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 15 Jan 2023 21:45:12 +0000 (23:45 +0200)
commit252d50da337ba97019574b1e830879d5dd5121d2
tree7c6d22885a6609e90ffacb37eff55d9479369e37
parent7faf8ae4277156da32eada72c07f5edeb82cd9e4
media: uvcvideo: Refactor __uvc_ctrl_add_mapping

Simplify the exit code with a common error tag freeing all the memory.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/media/usb/uvc/uvc_ctrl.c