summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2020-07-28 13:22:09 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-10 14:06:27 +0200
commitbed888de658afe1c383f27f73b3afa8d89a4ff9a (patch)
tree399185816e9ceafe94066be952ff61191ce0addc /tools/perf/scripts/python/flamegraph.py
parent93df48d37c3f03886d84831992926333e7810640 (diff)
downloadlinux-bed888de658afe1c383f27f73b3afa8d89a4ff9a.tar.gz
linux-bed888de658afe1c383f27f73b3afa8d89a4ff9a.zip
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>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions