Skip to contentSkip to conversation

ehci: fix assertion typo

PATCH Applied Alejandro Martinez Ruiz 3 participants 3 messages Aug 14, 2012 – Aug 15, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ehci: fix assertion typo

---
 hw/usb/hcd-ehci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/hcd-ehci.c +1 -1
index b043e7c..104c21d 100644
@@ -2010,7 +2010,7 @@ static void ehci_fill_queue(EHCIPacket *p)
         p->qtdaddr = qtdaddr;
         p->qtd = qtd;
         p->usb_status = ehci_execute(p, "queue");
-        assert(p->usb_status = USB_RET_ASYNC);
+        assert(p->usb_status == USB_RET_ASYNC);
         p->async = EHCI_ASYNC_INFLIGHT;
     }
 }
Signature · 1 line
1.7.12.rc2.18.g61b472e
Reviewed-by on v1 1/1
#1 lore raw

Am 14.08.2012 16:13, schrieb Alejandro Martinez Ruiz:

Quoted 4 lines
---
 hw/usb/hcd-ehci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch looks like a sensible bugfix for 1.2, we most likely don't intend to overwrite the status. Gerd, could you take a second look?

Andreas

Quoted 15 lines
hw/usb/hcd-ehci.c +1 -1
index b043e7c..104c21d 100644
@@ -2010,7 +2010,7 @@ static void ehci_fill_queue(EHCIPacket *p)
         p->qtdaddr = qtdaddr;
         p->qtd = qtd;
         p->usb_status = ehci_execute(p, "queue");
-        assert(p->usb_status = USB_RET_ASYNC);
+        assert(p->usb_status == USB_RET_ASYNC);
         p->async = EHCI_ASYNC_INFLIGHT;
     }
 }
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg