Commit 09533d3c authored by Andre Przywara's avatar Andre Przywara Committed by Will Deacon
Browse files

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's avatarAndre Przywara <andre.przywara@arm.com>
Reviewed-by: default avatarJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 3f218e89
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment