diff options
author | Andre Przywara <andre.przywara@arm.com> | 2019-05-03 18:15:41 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2019-05-29 15:54:14 +0100 |
commit | 09533d3ccdfefc469e85bab313f4b0067bcc565f (patch) | |
tree | 4be03860be44ecc0c1755b177cf6027ab90606c7 | |
parent | 3f218e898850902387acaa7475458b6f8bc128f2 (diff) | |
download | kvmtool-09533d3ccdfefc469e85bab313f4b0067bcc565f.tar.gz |
vfio: remove spurious ampersand
As clang rightfully pointed out, the ampersand in front of this member
looks wrong.
Remove it so we actually really compare against the count being 0.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | vfio/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -952,7 +952,7 @@ static int vfio_pci_init_msis(struct kvm *kvm, struct vfio_device *vdev, size_t nr_entries = msis->nr_entries; ret = ioctl(vdev->fd, VFIO_DEVICE_GET_IRQ_INFO, &msis->info); - if (ret || &msis->info.count == 0) { + if (ret || msis->info.count == 0) { vfio_dev_err(vdev, "no MSI reported by VFIO"); return -ENODEV; } |