aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2020-07-28 13:22:09 +0200
committerMauro Carvalho Chehab <[email protected]>2020-09-10 14:06:27 +0200
commitbed888de658afe1c383f27f73b3afa8d89a4ff9a (patch)
tree399185816e9ceafe94066be952ff61191ce0addc /tools/perf/scripts/python
parent93df48d37c3f03886d84831992926333e7810640 (diff)
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 <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions