peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0142-usb-ehci-Drop-unused-sofv-value.patch

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