summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-05-30 11:05:42 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2012-06-01 20:51:10 -0300
commit75b4a94628c5035b5c350eff4a4edf923b5dc33a (patch)
tree3331bb1963a357ec3e8143c1519a6140c270a13d
parentpci-assign: Drop write-only AssignedDevRegion::num (diff)
downloadqemu-kvm-75b4a94628c5035b5c350eff4a4edf923b5dc33a.tar.gz
qemu-kvm-75b4a94628c5035b5c350eff4a4edf923b5dc33a.tar.bz2
qemu-kvm-75b4a94628c5035b5c350eff4a4edf923b5dc33a.zip
pci-assign: Drop kvm_assigned_irq::host_irq initialization
real_device.irq is never set explicitly, thus remains 0. So we can simply drop this line as assigned_irq_data is zero-initialized anyway. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--hw/device-assignment.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/device-assignment.c b/hw/device-assignment.c
index 713e32aaf..92710027e 100644
--- a/hw/device-assignment.c
+++ b/hw/device-assignment.c
@@ -883,7 +883,6 @@ static int assign_irq(AssignedDevice *dev)
memset(&assigned_irq_data, 0, sizeof(assigned_irq_data));
assigned_irq_data.assigned_dev_id = calc_assigned_dev_id(dev);
assigned_irq_data.guest_irq = irq;
- assigned_irq_data.host_irq = dev->real_device.irq;
if (dev->irq_requested_type) {
assigned_irq_data.flags = dev->irq_requested_type;
r = kvm_deassign_irq(kvm_state, &assigned_irq_data);