PERFORCE change 155702 for review
Weongyo Jeong
weongyo at FreeBSD.org
Tue Jan 6 08:20:29 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=155702
Change 155702 by weongyo at weongyo_ws on 2009/01/06 08:19:26
a trivial ordering of functions.
Affected files ...
.. //depot/projects/vap/sys/dev/usb/if_urtw.c#7 edit
Differences ...
==== //depot/projects/vap/sys/dev/usb/if_urtw.c#7 (text+ko) ====
@@ -582,33 +582,6 @@
}
static usbd_status
-urtw_close_pipes(struct urtw_softc *sc)
-{
- usbd_status error = 0;
-
- if (sc->sc_rxpipe != NULL) {
- error = usbd_close_pipe(sc->sc_rxpipe);
- if (error != 0)
- goto fail;
- sc->sc_rxpipe = NULL;
- }
- if (sc->sc_txpipe_low != NULL) {
- error = usbd_close_pipe(sc->sc_txpipe_low);
- if (error != 0)
- goto fail;
- sc->sc_txpipe_low = NULL;
- }
- if (sc->sc_txpipe_normal != NULL) {
- error = usbd_close_pipe(sc->sc_txpipe_normal);
- if (error != 0)
- goto fail;
- sc->sc_txpipe_normal = NULL;
- }
-fail:
- return (error);
-}
-
-static usbd_status
urtw_open_pipes(struct urtw_softc *sc)
{
usbd_status error;
@@ -649,6 +622,33 @@
return (error);
}
+static usbd_status
+urtw_close_pipes(struct urtw_softc *sc)
+{
+ usbd_status error = 0;
+
+ if (sc->sc_rxpipe != NULL) {
+ error = usbd_close_pipe(sc->sc_rxpipe);
+ if (error != 0)
+ goto fail;
+ sc->sc_rxpipe = NULL;
+ }
+ if (sc->sc_txpipe_low != NULL) {
+ error = usbd_close_pipe(sc->sc_txpipe_low);
+ if (error != 0)
+ goto fail;
+ sc->sc_txpipe_low = NULL;
+ }
+ if (sc->sc_txpipe_normal != NULL) {
+ error = usbd_close_pipe(sc->sc_txpipe_normal);
+ if (error != 0)
+ goto fail;
+ sc->sc_txpipe_normal = NULL;
+ }
+fail:
+ return (error);
+}
+
static int
urtw_alloc_data_list(struct urtw_softc *sc, struct urtw_data data[],
int ndata, int maxsz, int fillmbuf)
More information about the p4-projects
mailing list