hw/usb/hcd-xhci-nec: Remove unused XHCINecState::flags field
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.
Reported-by Nicholas Piggin <[email protected]>
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- hw/usb/hcd-xhci-nec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
hw/usb/hcd-xhci-nec.c +1 -4
@@ -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
Quoted 27 lines · Philippe Mathieu-Daudé
Commit
b9599519a01("hw/usb/hcd-xhci: RemoveXHCI_FLAG_SS_FIRSTflag") remove the last use ofXHCINecState::flagsbut neglected to remove it; do that now.Reported-by Nicholas Piggin <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/usb/hcd-xhci-nec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)hw/usb/hcd-xhci-nec.c +1
-3@@ -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; }
Reviewed-by Thomas Huth <[email protected]>
Quoted 9 lines · Philippe Mathieu-Daudé
Commit
b9599519a01("hw/usb/hcd-xhci: RemoveXHCI_FLAG_SS_FIRSTflag") remove the last use ofXHCINecState::flagsbut neglected to remove it; do that now.Reported-by Nicholas Piggin <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/usb/hcd-xhci-nec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
Patch queued.