diff options
author | Arseniy Krasnov <avkrasnov@sberdevices.ru> | 2023-03-26 01:04:50 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-03-28 12:03:50 +0200 |
commit | e3ec366eb0d1d5f7cbe28e747c76180f7d45f00d (patch) | |
tree | b1f15a04c52372e0f22431bf61ff69b1635112bf /net/unix/unix_bpf.c | |
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 <AVKrasnov@sberdevices.ru>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions