Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb g/c some unused stuff.
details: https://anonhg.NetBSD.org/src/rev/74357f78e33c
branches: nick-nhusb
changeset: 334276:74357f78e33c
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Oct 20 15:17:54 2015 +0000
description:
g/c some unused stuff.
diffstat:
sys/dev/usb/motg.c | 9 ++-------
sys/dev/usb/motgvar.h | 6 +-----
2 files changed, 3 insertions(+), 12 deletions(-)
diffs (60 lines):
diff -r 84b1d348d0f2 -r 74357f78e33c sys/dev/usb/motg.c
--- a/sys/dev/usb/motg.c Tue Oct 20 08:33:17 2015 +0000
+++ b/sys/dev/usb/motg.c Tue Oct 20 15:17:54 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: motg.c,v 1.12.2.19 2015/10/11 09:17:51 skrll Exp $ */
+/* $NetBSD: motg.c,v 1.12.2.20 2015/10/20 15:17:54 skrll Exp $ */
/*
* Copyright (c) 1998, 2004, 2011, 2012, 2014 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
#include "opt_motg.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: motg.c,v 1.12.2.19 2015/10/11 09:17:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: motg.c,v 1.12.2.20 2015/10/20 15:17:54 skrll Exp $");
#include <sys/param.h>
@@ -754,9 +754,7 @@
xfer = pool_cache_get(sc->sc_xferpool, PR_NOWAIT);
if (xfer != NULL) {
memset(xfer, 0, sizeof(struct motg_xfer));
- UXFER(xfer)->sc = sc;
#ifdef DIAGNOSTIC
- // XXX UXFER(xfer)->iinfo.isdone = 1;
xfer->ux_state = XFER_BUSY;
#endif
}
@@ -1003,9 +1001,6 @@
sc->sc_intr_xfer = NULL;
-#ifdef DIAGNOSTIC
- // XXX UXFER(xfer)->iinfo.isdone = 1;
-#endif
xfer->ux_status = USBD_CANCELLED;
usb_transfer_complete(xfer);
}
diff -r 84b1d348d0f2 -r 74357f78e33c sys/dev/usb/motgvar.h
--- a/sys/dev/usb/motgvar.h Tue Oct 20 08:33:17 2015 +0000
+++ b/sys/dev/usb/motgvar.h Tue Oct 20 15:17:54 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: motgvar.h,v 1.4.2.5 2015/03/19 17:26:43 skrll Exp $ */
+/* $NetBSD: motgvar.h,v 1.4.2.6 2015/10/20 15:17:54 skrll Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -111,12 +111,8 @@
struct motg_xfer {
struct usbd_xfer xfer;
- struct motg_softc *sc;
};
-#define UXFER(xfer) ((struct motg_xfer *)(xfer))
-
-
int motg_init(struct motg_softc *);
int motg_intr(struct motg_softc *, uint16_t, uint16_t, uint8_t);
int motg_intr_vbus(struct motg_softc *, int);
Home |
Main Index |
Thread Index |
Old Index