summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArseniy Krasnov <avkrasnov@sberdevices.ru>2023-03-26 01:04:50 +0300
committerPaolo Abeni <pabeni@redhat.com>2023-03-28 13:03:50 +0300
commite3ec366eb0d1d5f7cbe28e747c76180f7d45f00d (patch)
treeb1f15a04c52372e0f22431bf61ff69b1635112bf /tools/perf/scripts/python
parentb68ffb1b3bee3762f7579bdcc9ca3d415ed0b9b4 (diff)
downloadlinux-e3ec366eb0d1d5f7cbe28e747c76180f7d45f00d.tar.xz
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 <AVKrasnov@sberdevices.ru> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions