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 Remove unused fields from ohci_pipe
details: https://anonhg.NetBSD.org/src/rev/12e78453dfe7
branches: nick-nhusb
changeset: 334319:12e78453dfe7
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Nov 15 13:59:52 2015 +0000
description:
Remove unused fields from ohci_pipe
diffstat:
sys/dev/usb/ohci.c | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
diffs (56 lines):
diff -r 5487f08bc96e -r 12e78453dfe7 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Sat Nov 14 10:44:57 2015 +0000
+++ b/sys/dev/usb/ohci.c Sun Nov 15 13:59:52 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.254.2.27 2015/11/14 10:05:47 skrll Exp $ */
+/* $NetBSD: ohci.c,v 1.254.2.28 2015/11/15 13:59:52 skrll Exp $ */
/*
* Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.27 2015/11/14 10:05:47 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.28 2015/11/15 13:59:52 skrll Exp $");
#include "opt_usb.h"
@@ -256,19 +256,12 @@
/* Control pipe */
struct {
usb_dma_t reqdma;
- u_int length;
- ohci_soft_td_t *setup, *data, *stat;
} ctrl;
/* Interrupt pipe */
struct {
int nslots;
int pos;
} intr;
- /* Bulk pipe */
- struct {
- u_int length;
- int isread;
- } bulk;
/* Isochronous pipe */
struct isoc {
int next, inuse;
@@ -2611,7 +2604,6 @@
tail->xfer = NULL;
sed = opipe->sed;
- opipe->ctrl.length = len;
KASSERTMSG(OHCI_ED_GET_FA(O32TOH(sed->ed.ed_flags)) == dev->ud_addr,
"address ED %d pipe %d\n",
@@ -2820,9 +2812,6 @@
xfer->ux_flags);
DPRINTFN(4, "endpt=%d", endpt, 0, 0, 0);
- opipe->bulk.isread = isread;
- opipe->bulk.length = len;
-
usb_syncmem(&sed->dma, sed->offs, sizeof(sed->ed),
BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD);
/* Update device address */
Home |
Main Index |
Thread Index |
Old Index