diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-03-30 09:53:53 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-04-17 10:23:28 +0200 |
commit | 8e24283b2687e1d58d5f6a4872198c29e8a45d00 (patch) | |
tree | 994b86a058963b0a98c04fcdcb9e37bc655df9b0 | |
parent | 96dd9aac37d30f3425088f81523942e67b2d03ac (diff) | |
download | qemu-8e24283b2687e1d58d5f6a4872198c29e8a45d00.zip qemu-8e24283b2687e1d58d5f6a4872198c29e8a45d00.tar.gz qemu-8e24283b2687e1d58d5f6a4872198c29e8a45d00.tar.bz2 |
usb-ehci: Drop unused sofv value
The sofv value only ever gets a value assigned and is never used (read)
anywhere, so we can just drop it.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | hw/usb/hcd-ehci.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index be02308..e12f098 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw/usb/hcd-ehci.c @@ -403,7 +403,6 @@ struct EHCIState { /* * Internal states, shadow registers, etc */ - uint32_t sofv; QEMUTimer *frame_timer; int attach_poll_counter; int astate; // Current state in asynchronous schedule @@ -1102,10 +1101,6 @@ static void ehci_mem_writel(void *ptr, target_phys_addr_t addr, uint32_t val) val &= USBINTR_MASK; break; - case FRINDEX: - s->sofv = val >> 3; - break; - case CONFIGFLAG: val &= 0x1; if (val) { @@ -2157,9 +2152,6 @@ static void ehci_frame_timer(void *opaque) ehci_set_interrupt(ehci, USBSTS_FLR); ehci->frindex = 0; } - - ehci->sofv = (ehci->frindex - 1) >> 3; - ehci->sofv &= 0x000003ff; } if (frames - i > ehci->maxframes) { |