diff options
| author | Colin Ian King <[email protected]> | 2024-11-07 13:21:14 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2024-11-12 23:07:46 +0000 |
| commit | 6a39bb15b3d1c355ab198d41f9590379d734f0bb (patch) | |
| tree | 6a1f1b4b3174521bb4c95198be23ab3e0a78ee90 /drivers/pci/controller/pci-host-generic.c | |
| parent | virtio_fs: store actual queue index in mq_map (diff) | |
| download | kernel-6a39bb15b3d1c355ab198d41f9590379d734f0bb.tar.gz kernel-6a39bb15b3d1c355ab198d41f9590379d734f0bb.zip | |
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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Eugenio Pérez <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions
