PERFORCE change 116737 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Mar 28 15:30:23 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=116737
Change 116737 by hselasky at hselasky_mini_itx on 2007/03/28 15:29:32
Remove some unused code, and remove the open-delay.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/ucom.c#13 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/ucom.c#13 (text+ko) ====
@@ -407,6 +407,7 @@
return ENXIO;
}
+#if 0
/*
* wait a little for previous commands
* to be flushed out:
@@ -416,6 +417,7 @@
if (error && (error != EWOULDBLOCK)) {
return error;
}
+#endif
DPRINTF(0, "tp = %p\n", tp);
@@ -688,14 +690,6 @@
return 0;
}
-#if 0
- sc->sc_flag &= ~UCOM_FLAG_READ_ON;
-
- if (sc->sc_callback->ucom_stop_read) {
- (sc->sc_callback->ucom_stop_read)(sc);
- }
-#endif
-
error = (sc->sc_callback->ucom_param)(sc, t);
if (error) {
DPRINTF(0, "callback error = %d\n", error);
@@ -713,14 +707,6 @@
ttyldoptim(tp);
-#if 0
- sc->sc_flag |= UCOM_FLAG_READ_ON;
-
- if (sc->sc_callback->ucom_start_read) {
- (sc->sc_callback->ucom_start_read)(sc);
- }
-#endif
-
return 0;
}
@@ -824,8 +810,9 @@
goto done;
}
+ DPRINTF(0, "cnt=%d\n", cnt);
+
if (cnt == 0) {
- DPRINTF(0, "cnt == 0\n");
goto done;
}
More information about the p4-projects
mailing list