diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-11-07 16:21:14 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-11-13 02:07:46 +0300 |
commit | 6a39bb15b3d1c355ab198d41f9590379d734f0bb (patch) | |
tree | 6a1f1b4b3174521bb4c95198be23ab3e0a78ee90 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | df28040c7f24559ffb23d5323eaa2f023a107dbe (diff) | |
download | linux-6a39bb15b3d1c355ab198d41f9590379d734f0bb.tar.xz |
virtio_vdpa: remove redundant check on desc
The boolean variable has_affinity is true when desc is non-null and
ops->set_vq_affinity is non-null. Hence the call to create_affinity_masks
does not need to check for desc being non-null is redundant when
has_affinity is true, so it can be removed as well as the now unused
default_affd.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Message-Id: <20241107132114.22188-1-colin.i.king@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions