linux/drivers/media/usb/uvc
Hans de Goede bed888de65 media: uvcvideo: Cleanup uvc_ctrl_add_info() error handling
There is only 1 error exit in uvc_ctrl_add_info(), so using goto style
error handling is not necessary. Also the kfree(ctrl->uvc_data) on error
is not necessary, because the only error exit is for the kzalloc() of
ctrl->uvc_data failing.

Remove all the error handling cruft and simply do "return -ENOMEM" on
kzalloc() failure.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-10 14:06:27 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile media: uvcvideo: Add a metadata device node 2018-01-04 06:41:47 -05:00
uvc_ctrl.c media: uvcvideo: Cleanup uvc_ctrl_add_info() error handling 2020-09-10 14:06:27 +02:00
uvc_debugfs.c media: uvcvideo: drop error check of debugfs_create_dir() 2019-11-14 11:16:34 +08:00
uvc_driver.c media: uvcvideo: Add mapping for HEVC payloads 2020-09-10 14:06:27 +02:00
uvc_entity.c media: uvcvideo: Set media controller entity functions 2020-09-10 14:06:27 +02:00
uvc_isight.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
uvc_metadata.c media: uvcvideo: Fix a typo in UVC_METATADA_BUF_SIZE 2019-10-16 16:34:34 -03:00
uvc_queue.c media: uvcvideo: Fix a typo in UVC_METATADA_BUF_SIZE 2019-10-16 16:34:34 -03:00
uvc_status.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
uvc_v4l2.c media: drivers/media: don't set pix->priv = 0 2019-07-23 08:48:33 -04:00
uvc_video.c media: uvcvideo: Fix annotation for uvc_video_clock_update() 2020-09-10 14:06:27 +02:00
uvcvideo.h media: uvcvideo: Add mapping for HEVC payloads 2020-09-10 14:06:27 +02:00