Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2009 06:11:35 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r190244 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb dev/txp
Message-ID:  <200903220611.n2M6BZDV058950@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Sun Mar 22 06:11:35 2009
New Revision: 190244
URL: http://svn.freebsd.org/changeset/base/190244

Log:
  MFC r189688:
    style(9) - space after keywords.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/ath/ath_hal/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)
  stable/7/sys/dev/txp/if_txp.c

Modified: stable/7/sys/dev/txp/if_txp.c
==============================================================================
--- stable/7/sys/dev/txp/if_txp.c	Sun Mar 22 06:07:03 2009	(r190243)
+++ stable/7/sys/dev/txp/if_txp.c	Sun Mar 22 06:11:35 2009	(r190244)
@@ -192,16 +192,16 @@ txp_probe(device_t dev)
 
 	t = txp_devs;
 
-	while(t->txp_name != NULL) {
+	while (t->txp_name != NULL) {
 		if ((pci_get_vendor(dev) == t->txp_vid) &&
 		    (pci_get_device(dev) == t->txp_did)) {
 			device_set_desc(dev, t->txp_name);
-			return(BUS_PROBE_DEFAULT);
+			return (BUS_PROBE_DEFAULT);
 		}
 		t++;
 	}
 
-	return(ENXIO);
+	return (ENXIO);
 }
 
 static int
@@ -352,12 +352,12 @@ txp_attach(device_t dev)
 		goto fail;
 	}
 
-	return(0);
+	return (0);
 
 fail:
 	txp_release_resources(sc);
 	mtx_destroy(&sc->sc_mtx);
-	return(error);
+	return (error);
 }
 
 static int
@@ -385,7 +385,7 @@ txp_detach(device_t dev)
 	txp_release_resources(sc);
 
 	mtx_destroy(&sc->sc_mtx);
-	return(0);
+	return (0);
 }
 
 static void
@@ -901,7 +901,7 @@ txp_shutdown(device_t dev)
 	txp_command(sc, TXP_CMD_HALT, 0, 0, 0, NULL, NULL, NULL, 0);
 	TXP_UNLOCK(sc);
 
-	return(0);
+	return (0);
 }
 
 static int
@@ -990,7 +990,7 @@ txp_alloc_rings(struct txp_softc *sc)
 		sc->sc_rxbufs[i].rb_sd = malloc(sizeof(struct txp_swdesc),
 		    M_DEVBUF, M_NOWAIT);
 		if (sc->sc_rxbufs[i].rb_sd == NULL)
-			return(ENOBUFS);
+			return (ENOBUFS);
 		sd = sc->sc_rxbufs[i].rb_sd;
 		sd->sd_mbuf = NULL;
 	}
@@ -1011,7 +1011,7 @@ txp_alloc_rings(struct txp_softc *sc)
 
 	if (r != STAT_WAITING_FOR_BOOT) {
 		device_printf(sc->sc_dev, "not waiting for boot\n");
-		return(ENXIO);
+		return (ENXIO);
 	}
 
 	WRITE_REG(sc, TXP_H2A_2, 0);
@@ -1027,7 +1027,7 @@ txp_alloc_rings(struct txp_softc *sc)
 	}
 	if (r != STAT_RUNNING) {
 		device_printf(sc->sc_dev, "fw not running\n");
-		return(ENXIO);
+		return (ENXIO);
 	}
 
 	/* Clear TX and CMD ring write registers */
@@ -1046,7 +1046,7 @@ txp_ioctl(struct ifnet *ifp, u_long comm
 	struct ifreq *ifr = (struct ifreq *)data;
 	int error = 0;
 
-	switch(command) {
+	switch (command) {
 	case SIOCSIFFLAGS:
 		TXP_LOCK(sc);
 		if (ifp->if_flags & IFF_UP) {
@@ -1077,7 +1077,7 @@ txp_ioctl(struct ifnet *ifp, u_long comm
 		break;
 	}
 
-	return(error);
+	return (error);
 }
 
 static int
@@ -1094,7 +1094,7 @@ txp_rxring_fill(struct txp_softc *sc)
 		sd = sc->sc_rxbufs[i].rb_sd;
 		sd->sd_mbuf = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
 		if (sd->sd_mbuf == NULL)
-			return(ENOBUFS);
+			return (ENOBUFS);
 
 		sd->sd_mbuf->m_pkthdr.len = sd->sd_mbuf->m_len = MCLBYTES;
 		sd->sd_mbuf->m_pkthdr.rcvif = ifp;
@@ -1107,7 +1107,7 @@ txp_rxring_fill(struct txp_softc *sc)
 	sc->sc_hostvar->hv_rx_buf_write_idx = (RXBUF_ENTRIES - 1) *
 	    sizeof(struct txp_rxbuf_desc);
 
-	return(0);
+	return (0);
 }
 
 static void



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