Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Mar 2007 15:30:22 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 116737 for review
Message-ID:  <200703281530.l2SFUMO2087525@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=116737

Change 116737 by hselasky@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;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703281530.l2SFUMO2087525>