From owner-p4-projects@FreeBSD.ORG Tue Jan 6 08:20:28 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 76CB91065674; Tue, 6 Jan 2009 08:20:27 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 379C21065670 for ; Tue, 6 Jan 2009 08:20:27 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 26C338FC13 for ; Tue, 6 Jan 2009 08:20:27 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n068KQHR006062 for ; Tue, 6 Jan 2009 08:20:26 GMT (envelope-from weongyo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n068KQx6006060 for perforce@freebsd.org; Tue, 6 Jan 2009 08:20:26 GMT (envelope-from weongyo@FreeBSD.org) Date: Tue, 6 Jan 2009 08:20:26 GMT Message-Id: <200901060820.n068KQx6006060@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to weongyo@FreeBSD.org using -f From: Weongyo Jeong To: Perforce Change Reviews Cc: Subject: PERFORCE change 155702 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2009 08:20:29 -0000 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)