diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-03-28 16:34:27 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-03-28 16:34:27 +0200 |
commit | daa0524bc0a07048e33fdb61cae30467ef4ceff7 (patch) | |
tree | cf6817acd27a627678111944c8d96cc87c2c97b7 /tools/perf/scripts/python/syscall-counts.py | |
parent | 3c097b069bb82391fcad73373eccbca8400636e7 (diff) |
video: smscufx: Less checks in ufx_usb_probe() after error detection
Up to four checks could be repeated by the ufx_usb_probe() function
during error handling even if the relevant properties can be determined
for the involved variables before by source code analysis.
* Return directly after a call of the function "kzalloc" failed
at the beginning.
* Adjust jump targets so that extra checks can be omitted at the end.
* Delete initialisations for the variables "info" and "retval"
which became unnecessary with this refactoring.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions