Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Remove overly paranoid test (and not in the spec...
details: https://anonhg.NetBSD.org/src/rev/8f9d64e52e4f
branches: trunk
changeset: 510675:8f9d64e52e4f
user: augustss <augustss%NetBSD.org@localhost>
date: Mon Jun 04 06:01:40 2001 +0000
description:
Remove overly paranoid test (and not in the spec either). From OpenBSD.
diffstat:
sys/dev/usb/umass.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r fe2b8a011208 -r 8f9d64e52e4f sys/dev/usb/umass.c
--- a/sys/dev/usb/umass.c Mon Jun 04 06:00:43 2001 +0000
+++ b/sys/dev/usb/umass.c Mon Jun 04 06:01:40 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: umass.c,v 1.61 2001/04/26 03:59:32 enami Exp $ */
+/* $NetBSD: umass.c,v 1.62 2001/06/04 06:01:40 augustss Exp $ */
/*-
* Copyright (c) 1999 MAEKAWA Masahide <bishop%rr.iij4u.or.jp@localhost>,
* Nick Hibma <n_hibma%freebsd.org@localhost>
@@ -1238,6 +1238,7 @@
panic("%s: transferred %d bytes instead of %d bytes\n",
USBDEVNAME(sc->sc_dev),
sc->transfer_actlen, sc->transfer_datalen);
+#if 0
} else if (sc->transfer_datalen - sc->transfer_actlen
!= UGETDW(sc->csw.dCSWDataResidue)) {
DPRINTF(UDMASS_BBB, ("%s: actlen=%d != residue=%d\n",
@@ -1247,7 +1248,7 @@
umass_bbb_reset(sc, STATUS_WIRE_FAILED);
return;
-
+#endif
} else if (sc->csw.bCSWStatus == CSWSTATUS_FAILED) {
DPRINTF(UDMASS_BBB, ("%s: Command Failed, res = %d\n",
USBDEVNAME(sc->sc_dev),
Home |
Main Index |
Thread Index |
Old Index