}
#endif
- DWC_SPINLOCK_IRQSAVE(dwc_otg_hcd->lock, &flags);
-
if (((uint32_t) urb & 0xf0000000) == 0) {
DWC_PRINTF("%s error: urb is %p!!!\n", __func__, urb);
- goto out1;
+ return 0;
}
+ DWC_SPINLOCK_IRQSAVE(dwc_otg_hcd->lock, &flags);
+
if (((uint32_t) urb->hcpriv & 0xf0000000) == 0) {
DWC_PRINTF("%s error: urb->hcpriv %p urb %p, count %d!!!\n",
__func__, urb->hcpriv, urb,
DWC_PRINTF("Called usb_hcd_giveback_urb()\n");
DWC_PRINTF(" urb->status = %d\n", urb->status);
}
-out1:
+
return 0;
}