diff options
author | Avi Kivity <avi@redhat.com> | 2011-07-27 16:18:29 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-07-27 16:18:29 +0300 |
commit | 8fbc470b133976f9aef0f4181622da39add886d7 (patch) | |
tree | b94c9a03d2f4cc5f8262a0825786d4ac841cf307 | |
parent | 49f020bb622403bebd14f8dcffdd54f022dacccd (diff) |
device-assignment: remove unused variable e_device
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | hw/device-assignment.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/device-assignment.c b/hw/device-assignment.c index 1113ee535..177daa4ca 100644 --- a/hw/device-assignment.c +++ b/hw/device-assignment.c @@ -1702,7 +1702,7 @@ static void reset_assigned_device(DeviceState *dev) static int assigned_initfn(struct PCIDevice *pci_dev) { AssignedDevice *dev = DO_UPCAST(AssignedDevice, dev, pci_dev); - uint8_t e_device, e_intx; + uint8_t e_intx; int r; if (!kvm_enabled()) { @@ -1729,7 +1729,6 @@ static int assigned_initfn(struct PCIDevice *pci_dev) goto out; /* handle interrupt routing */ - e_device = (dev->dev.devfn >> 3) & 0x1f; e_intx = dev->dev.config[0x3d] - 1; dev->intpin = e_intx; dev->run = 0; |