diff mbox series

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

Message ID 20241127122812.89487-1-philmd@linaro.org
State Superseded
Headers show
Series hw/usb/hcd-xhci-nec: Remove unused XHCINecState::flags field | expand

Commit Message

Philippe Mathieu-Daudé Nov. 27, 2024, 12:28 p.m. UTC
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 <npiggin@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 hw/usb/hcd-xhci-nec.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Comments

Thomas Huth Dec. 6, 2024, 4:10 p.m. UTC | #1
On 27/11/2024 13.28, Philippe Mathieu-Daudé wrote:
> 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 <npiggin@gmail.com>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   hw/usb/hcd-xhci-nec.c | 5 +----
>   1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/hw/usb/hcd-xhci-nec.c b/hw/usb/hcd-xhci-nec.c
> index 0c063b3697d..1a191fc7372 100644
> --- a/hw/usb/hcd-xhci-nec.c
> +++ b/hw/usb/hcd-xhci-nec.c
> @@ -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;
>   }

Reviewed-by: Thomas Huth <thuth@redhat.com>
Philippe Mathieu-Daudé Dec. 13, 2024, 2:50 p.m. UTC | #2
On 27/11/24 13:28, Philippe Mathieu-Daudé wrote:
> 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 <npiggin@gmail.com>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   hw/usb/hcd-xhci-nec.c | 5 +----
>   1 file changed, 1 insertion(+), 4 deletions(-)

Patch queued.
diff mbox series

Patch

diff --git a/hw/usb/hcd-xhci-nec.c b/hw/usb/hcd-xhci-nec.c
index 0c063b3697d..1a191fc7372 100644
--- a/hw/usb/hcd-xhci-nec.c
+++ b/hw/usb/hcd-xhci-nec.c
@@ -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;
 }