Date: Tue, 6 Jan 2009 08:20:26 GMT From: Weongyo Jeong <weongyo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 155702 for review Message-ID: <200901060820.n068KQx6006060@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=155702 Change 155702 by weongyo@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901060820.n068KQx6006060>