0fa3e51
From ef3477db39f2eb38610b7e99a4a4f4d8ddb903df Mon Sep 17 00:00:00 2001
0fa3e51
From: Hans de Goede <hdegoede@redhat.com>
0fa3e51
Date: Thu, 29 Mar 2012 16:37:34 +0200
0fa3e51
Subject: [PATCH 142/146] usb-ehci: Drop unused sofv value
0fa3e51
0fa3e51
The sofv value only ever gets a value assigned and is never used (read)
0fa3e51
anywhere, so we can just drop it.
0fa3e51
0fa3e51
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
0fa3e51
---
0fa3e51
 hw/usb-ehci.c |    8 --------
0fa3e51
 1 file changed, 8 deletions(-)
0fa3e51
0fa3e51
diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c
0fa3e51
index 3934bf0..ff69587 100644
0fa3e51
--- a/hw/usb-ehci.c
0fa3e51
+++ b/hw/usb-ehci.c
0fa3e51
@@ -403,7 +403,6 @@ struct EHCIState {
0fa3e51
     /*
0fa3e51
      *  Internal states, shadow registers, etc
0fa3e51
      */
0fa3e51
-    uint32_t sofv;
0fa3e51
     QEMUTimer *frame_timer;
0fa3e51
     int attach_poll_counter;
0fa3e51
     int astate;                        // Current state in asynchronous schedule
0fa3e51
@@ -1082,10 +1081,6 @@ static void ehci_mem_writel(void *ptr, target_phys_addr_t addr, uint32_t val)
0fa3e51
         val &= USBINTR_MASK;
0fa3e51
         break;
0fa3e51
 
0fa3e51
-    case FRINDEX:
0fa3e51
-        s->sofv = val >> 3;
0fa3e51
-        break;
0fa3e51
-
0fa3e51
     case CONFIGFLAG:
0fa3e51
         val &= 0x1;
0fa3e51
         if (val) {
0fa3e51
@@ -2165,9 +2160,6 @@ static void ehci_frame_timer(void *opaque)
0fa3e51
                 ehci_set_interrupt(ehci, USBSTS_FLR);
0fa3e51
                 ehci->frindex = 0;
0fa3e51
             }
0fa3e51
-
0fa3e51
-            ehci->sofv = (ehci->frindex - 1) >> 3;
0fa3e51
-            ehci->sofv &= 0x000003ff;
0fa3e51
         }
0fa3e51
 
0fa3e51
         if (frames - i > ehci->maxframes) {
0fa3e51
-- 
0fa3e51
1.7.9.3
0fa3e51