Skip to contentSkip to conversation

hw/usb/hcd-xhci-nec: Remove unused XHCINecState::flags field

PATCH In review Philippe Mathieu-Daudé 2 participants 3 messages Nov 27, 2024 – Dec 13, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/usb/hcd-xhci-nec: Remove unused XHCINecState::flags field

Commit b9599519a01 ("hw/usb/hcd-xhci: Remove XHCI_FLAG_SS_FIRST flag") remove the last use of XHCINecState::flags but neglected to remove it; do that now.

---
 hw/usb/hcd-xhci-nec.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
hw/usb/hcd-xhci-nec.c +1 -4
index 0c063b3697d..1a191fc7372 100644
@@ -30,10 +30,8 @@
 OBJECT_DECLARE_SIMPLE_TYPE(XHCINecState, NEC_XHCI)
 
 struct XHCINecState {
-    /*< private >*/
     XHCIPciState parent_obj;
-    /*< public >*/
-    uint32_t flags;
+
     uint32_t intrs;
     uint32_t slots;
 };
@@ -51,7 +49,6 @@ static void nec_xhci_instance_init(Object *obj)
     XHCIPciState *pci = XHCI_PCI(obj);
     XHCINecState *nec = NEC_XHCI(obj);
 
-    pci->xhci.flags    = nec->flags;
     pci->xhci.numintrs = nec->intrs;
     pci->xhci.numslots = nec->slots;
 }
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 27 lines · Philippe Mathieu-Daudé

Commit b9599519a01 ("hw/usb/hcd-xhci: Remove XHCI_FLAG_SS_FIRST flag") remove the last use of XHCINecState::flags but neglected to remove it; do that now.

---
  hw/usb/hcd-xhci-nec.c | 5 +----
  1 file changed, 1 insertion(+), 4 deletions(-)
hw/usb/hcd-xhci-nec.c +1 -3
index 0c063b3697d..1a191fc7372 100644
@@ -30,10 +30,8 @@
  OBJECT_DECLARE_SIMPLE_TYPE(XHCINecState, NEC_XHCI)
 
  struct XHCINecState {
-    /*< private >*/
      XHCIPciState parent_obj;
-    /*< public >*/
-    uint32_t flags;
+
      uint32_t intrs;
      uint32_t slots;
  };

hw/usb/hcd-xhci-nec.c static void nec_xhci_instance_init(Object *obj) · line 54

Quoted 7 lines
hw/usb/hcd-xhci-nec.c +0 -1
@@ -51,7 +49,6 @@ static void nec_xhci_instance_init(Object *obj)
      XHCIPciState *pci = XHCI_PCI(obj);
      XHCINecState *nec = NEC_XHCI(obj);
 
-    pci->xhci.flags    = nec->flags;
      pci->xhci.numintrs = nec->intrs;
      pci->xhci.numslots = nec->slots;
  }