summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2015-09-03 14:22:28 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2015-09-03 14:22:28 +0000
commitac8d81c550cc1946be8f7b054d9d3b135629e75f (patch)
treec97dde36d9d22d903743b001e0440f7361c25d0b /sys/dev
parent106643fd81af908e6351d080a526d8c68f102957 (diff)
Remove the abort_task field in struct dwc2_xfer. There is an identical
field in struct usbd_xfer which is part of dwc2_xfer. ok mpi@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/dwc2/dwc2.c10
-rw-r--r--sys/dev/usb/dwc2/dwc2var.h3
2 files changed, 5 insertions, 8 deletions
diff --git a/sys/dev/usb/dwc2/dwc2.c b/sys/dev/usb/dwc2/dwc2.c
index b0ca00aa97c..405f28ad092 100644
--- a/sys/dev/usb/dwc2/dwc2.c
+++ b/sys/dev/usb/dwc2/dwc2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwc2.c,v 1.32 2015/09/03 12:55:54 visa Exp $ */
+/* $OpenBSD: dwc2.c,v 1.33 2015/09/03 14:22:27 visa Exp $ */
/* $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $ */
/*-
@@ -441,11 +441,9 @@ STATIC void
dwc2_timeout(void *addr)
{
struct usbd_xfer *xfer = addr;
- struct dwc2_xfer *dxfer = DWC2_XFER2DXFER(xfer);
-// struct dwc2_pipe *dpipe = DWC2_XFER2DPIPE(xfer);
struct dwc2_softc *sc = DWC2_XFER2SC(xfer);
- DPRINTF("dxfer=%p\n", dxfer);
+ DPRINTF("xfer=%p\n", xfer);
if (sc->sc_dying) {
dwc2_timeout_task(addr);
@@ -453,9 +451,9 @@ dwc2_timeout(void *addr)
}
/* Execute the abort in a process context. */
- usb_init_task(&dxfer->abort_task, dwc2_timeout_task, addr,
+ usb_init_task(&xfer->abort_task, dwc2_timeout_task, addr,
USB_TASK_TYPE_ABORT);
- usb_add_task(dxfer->xfer.pipe->device, &dxfer->abort_task);
+ usb_add_task(xfer->device, &xfer->abort_task);
}
STATIC void
diff --git a/sys/dev/usb/dwc2/dwc2var.h b/sys/dev/usb/dwc2/dwc2var.h
index cee00aa4608..1bdc3e31112 100644
--- a/sys/dev/usb/dwc2/dwc2var.h
+++ b/sys/dev/usb/dwc2/dwc2var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwc2var.h,v 1.15 2015/09/03 12:55:54 visa Exp $ */
+/* $OpenBSD: dwc2var.h,v 1.16 2015/09/03 14:22:27 visa Exp $ */
/* $NetBSD: dwc2var.h,v 1.3 2013/10/22 12:57:40 skrll Exp $ */
/*-
@@ -43,7 +43,6 @@ struct dwc2_qtd;
struct dwc2_xfer {
struct usbd_xfer xfer; /* Needs to be first */
- struct usb_task abort_task;
struct dwc2_hcd_urb *urb;
int packet_count;