diff options
author | Arseniy Krasnov <[email protected]> | 2023-03-26 01:04:50 +0300 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2023-03-28 12:03:50 +0200 |
commit | e3ec366eb0d1d5f7cbe28e747c76180f7d45f00d (patch) | |
tree | b1f15a04c52372e0f22431bf61ff69b1635112bf /tools/perf/scripts/python/task-analyzer.py | |
parent | b68ffb1b3bee3762f7579bdcc9ca3d415ed0b9b4 (diff) |
virtio/vsock: check argument to avoid no effect call
Both of these functions have no effect when input argument is 0, so to
avoid useless spinlock access, check argument before it.
Signed-off-by: Arseniy Krasnov <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions