diff options
| author | Stefan Wahren <stefan.wahren@i2se.com> | 2022-01-23 21:02:23 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-25 16:30:16 +0100 |
| commit | e12592158515831e5ff6e80a36a4d05ceaf22908 (patch) | |
| tree | 41c8dae9a35a52904e19216e2f390862d6c25edf /tools/perf/scripts/python | |
| parent | ca225857faf237234d2fffe5d1919467dfadd822 (diff) | |
| download | kernel-e12592158515831e5ff6e80a36a4d05ceaf22908.tar.gz | |
staging: vchiq_dev: Avoid unnecessary alloc in vchiq_ioc_create_service
There is no need to allocate the user service in case there is a VCHIQ
connection required, but not available. So simply check the error conditions
before doing an expensive memory allocation.
Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/1642968143-19281-19-git-send-email-stefan.wahren@i2se.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
