mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
Lots of style(9) related white space fixes. Mostly missing spaces
after if, for, while, switch, '{', and '}' plus a bunch of bogus whitespace at the end of lines.
This commit is contained in:
parent
51331cf32a
commit
a744995d49
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83270
@ -238,7 +238,8 @@ SYSCTL_PROC(_machdep, OID_AUTO, an_dump, CTLTYPE_STRING | CTLFLAG_RW,
|
||||
* the SSID list will contain the name "tsunami." If we don't
|
||||
* find this, then there's no card present.
|
||||
*/
|
||||
int an_probe(dev)
|
||||
int
|
||||
an_probe(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct an_softc *sc = device_get_softc(dev);
|
||||
@ -353,7 +354,8 @@ an_release_resources(dev)
|
||||
}
|
||||
}
|
||||
|
||||
int an_attach(sc, unit, flags)
|
||||
int
|
||||
an_attach(sc, unit, flags)
|
||||
struct an_softc *sc;
|
||||
int unit;
|
||||
int flags;
|
||||
@ -645,7 +647,8 @@ an_rxeof(sc)
|
||||
}
|
||||
}
|
||||
|
||||
static void an_txeof(sc, status)
|
||||
static void
|
||||
an_txeof(sc, status)
|
||||
struct an_softc *sc;
|
||||
int status;
|
||||
{
|
||||
@ -682,7 +685,8 @@ static void an_txeof(sc, status)
|
||||
* the NIC has synchronized to the current cell (either as the master
|
||||
* in an ad-hoc group, or as a station connected to an access point).
|
||||
*/
|
||||
void an_stats_update(xsc)
|
||||
void
|
||||
an_stats_update(xsc)
|
||||
void *xsc;
|
||||
{
|
||||
struct an_softc *sc;
|
||||
@ -718,7 +722,8 @@ void an_stats_update(xsc)
|
||||
return;
|
||||
}
|
||||
|
||||
void an_intr(xsc)
|
||||
void
|
||||
an_intr(xsc)
|
||||
void *xsc;
|
||||
{
|
||||
struct an_softc *sc;
|
||||
@ -783,7 +788,8 @@ void an_intr(xsc)
|
||||
return;
|
||||
}
|
||||
|
||||
static int an_cmd(sc, cmd, val)
|
||||
static int
|
||||
an_cmd(sc, cmd, val)
|
||||
struct an_softc *sc;
|
||||
int cmd;
|
||||
int val;
|
||||
@ -830,7 +836,8 @@ static int an_cmd(sc, cmd, val)
|
||||
* most reliable method I've found to really kick the NIC in the
|
||||
* head and force it to reboot correctly.
|
||||
*/
|
||||
static void an_reset(sc)
|
||||
static void
|
||||
an_reset(sc)
|
||||
struct an_softc *sc;
|
||||
{
|
||||
if (sc->an_gone)
|
||||
@ -851,7 +858,8 @@ static void an_reset(sc)
|
||||
/*
|
||||
* Read an LTV record from the NIC.
|
||||
*/
|
||||
static int an_read_record(sc, ltv)
|
||||
static int
|
||||
an_read_record(sc, ltv)
|
||||
struct an_softc *sc;
|
||||
struct an_ltv_gen *ltv;
|
||||
{
|
||||
@ -908,7 +916,8 @@ static int an_read_record(sc, ltv)
|
||||
/*
|
||||
* Same as read, except we inject data instead of reading it.
|
||||
*/
|
||||
static int an_write_record(sc, ltv)
|
||||
static int
|
||||
an_write_record(sc, ltv)
|
||||
struct an_softc *sc;
|
||||
struct an_ltv_gen *ltv;
|
||||
{
|
||||
@ -946,7 +955,8 @@ static int an_write_record(sc, ltv)
|
||||
return(0);
|
||||
}
|
||||
|
||||
static void an_dump_record(sc, ltv, string)
|
||||
static void
|
||||
an_dump_record(sc, ltv, string)
|
||||
struct an_softc *sc;
|
||||
struct an_ltv_gen *ltv;
|
||||
char *string;
|
||||
@ -990,7 +1000,8 @@ static void an_dump_record(sc, ltv, string)
|
||||
}
|
||||
}
|
||||
|
||||
static int an_seek(sc, id, off, chan)
|
||||
static int
|
||||
an_seek(sc, id, off, chan)
|
||||
struct an_softc *sc;
|
||||
int id, off, chan;
|
||||
{
|
||||
@ -1025,7 +1036,8 @@ static int an_seek(sc, id, off, chan)
|
||||
return(0);
|
||||
}
|
||||
|
||||
static int an_read_data(sc, id, off, buf, len)
|
||||
static int
|
||||
an_read_data(sc, id, off, buf, len)
|
||||
struct an_softc *sc;
|
||||
int id, off;
|
||||
caddr_t buf;
|
||||
@ -1051,7 +1063,8 @@ static int an_read_data(sc, id, off, buf, len)
|
||||
return(0);
|
||||
}
|
||||
|
||||
static int an_write_data(sc, id, off, buf, len)
|
||||
static int
|
||||
an_write_data(sc, id, off, buf, len)
|
||||
struct an_softc *sc;
|
||||
int id, off;
|
||||
caddr_t buf;
|
||||
@ -1081,7 +1094,8 @@ static int an_write_data(sc, id, off, buf, len)
|
||||
* Allocate a region of memory inside the NIC and zero
|
||||
* it out.
|
||||
*/
|
||||
static int an_alloc_nicmem(sc, len, id)
|
||||
static int
|
||||
an_alloc_nicmem(sc, len, id)
|
||||
struct an_softc *sc;
|
||||
int len;
|
||||
int *id;
|
||||
@ -1114,7 +1128,8 @@ static int an_alloc_nicmem(sc, len, id)
|
||||
return(0);
|
||||
}
|
||||
|
||||
static void an_setdef(sc, areq)
|
||||
static void
|
||||
an_setdef(sc, areq)
|
||||
struct an_softc *sc;
|
||||
struct an_req *areq;
|
||||
{
|
||||
@ -1207,7 +1222,8 @@ static void an_setdef(sc, areq)
|
||||
* Derived from Linux driver to enable promiscious mode.
|
||||
*/
|
||||
|
||||
static void an_promisc(sc, promisc)
|
||||
static void
|
||||
an_promisc(sc, promisc)
|
||||
struct an_softc *sc;
|
||||
int promisc;
|
||||
{
|
||||
@ -1222,7 +1238,8 @@ static void an_promisc(sc, promisc)
|
||||
return;
|
||||
}
|
||||
|
||||
static int an_ioctl(ifp, command, data)
|
||||
static int
|
||||
an_ioctl(ifp, command, data)
|
||||
struct ifnet *ifp;
|
||||
u_long command;
|
||||
caddr_t data;
|
||||
@ -1388,7 +1405,6 @@ static int an_ioctl(ifp, command, data)
|
||||
ireq->i_val = IEEE80211_WEP_MIXED;
|
||||
else
|
||||
ireq->i_val = IEEE80211_WEP_ON;
|
||||
|
||||
} else {
|
||||
ireq->i_val = IEEE80211_WEP_OFF;
|
||||
}
|
||||
@ -1717,7 +1733,8 @@ static int an_ioctl(ifp, command, data)
|
||||
return(error != 0);
|
||||
}
|
||||
|
||||
static int an_init_tx_ring(sc)
|
||||
static int
|
||||
an_init_tx_ring(sc)
|
||||
struct an_softc *sc;
|
||||
{
|
||||
int i;
|
||||
@ -1740,7 +1757,8 @@ static int an_init_tx_ring(sc)
|
||||
return(0);
|
||||
}
|
||||
|
||||
static void an_init(xsc)
|
||||
static void
|
||||
an_init(xsc)
|
||||
void *xsc;
|
||||
{
|
||||
struct an_softc *sc = xsc;
|
||||
@ -1844,7 +1862,8 @@ static void an_init(xsc)
|
||||
return;
|
||||
}
|
||||
|
||||
static void an_start(ifp)
|
||||
static void
|
||||
an_start(ifp)
|
||||
struct ifnet *ifp;
|
||||
{
|
||||
struct an_softc *sc;
|
||||
@ -1941,7 +1960,8 @@ static void an_start(ifp)
|
||||
return;
|
||||
}
|
||||
|
||||
void an_stop(sc)
|
||||
void
|
||||
an_stop(sc)
|
||||
struct an_softc *sc;
|
||||
{
|
||||
struct ifnet *ifp;
|
||||
@ -1972,7 +1992,8 @@ void an_stop(sc)
|
||||
return;
|
||||
}
|
||||
|
||||
static void an_watchdog(ifp)
|
||||
static void
|
||||
an_watchdog(ifp)
|
||||
struct ifnet *ifp;
|
||||
{
|
||||
struct an_softc *sc;
|
||||
@ -1996,7 +2017,8 @@ static void an_watchdog(ifp)
|
||||
return;
|
||||
}
|
||||
|
||||
void an_shutdown(dev)
|
||||
void
|
||||
an_shutdown(dev)
|
||||
device_t dev;
|
||||
{
|
||||
struct an_softc *sc;
|
||||
@ -2067,8 +2089,8 @@ SYSCTL_INT(_machdep, OID_AUTO, an_cache_iponly, CTLFLAG_RW,
|
||||
* an_cache_store, per rx packet store signal
|
||||
* strength in MAC (src) indexed cache.
|
||||
*/
|
||||
static
|
||||
void an_cache_store (sc, eh, m, rx_quality)
|
||||
static void
|
||||
an_cache_store (sc, eh, m, rx_quality)
|
||||
struct an_softc *sc;
|
||||
struct ether_header *eh;
|
||||
struct mbuf *m;
|
||||
@ -2187,7 +2209,8 @@ void an_cache_store (sc, eh, m, rx_quality)
|
||||
}
|
||||
#endif
|
||||
|
||||
static int an_media_change(ifp)
|
||||
static int
|
||||
an_media_change(ifp)
|
||||
struct ifnet *ifp;
|
||||
{
|
||||
struct an_softc *sc = ifp->if_softc;
|
||||
@ -2224,7 +2247,8 @@ static int an_media_change(ifp)
|
||||
return(0);
|
||||
}
|
||||
|
||||
static void an_media_status(ifp, imr)
|
||||
static void
|
||||
an_media_status(ifp, imr)
|
||||
struct ifnet *ifp;
|
||||
struct ifmediareq *imr;
|
||||
{
|
||||
|
@ -85,7 +85,8 @@ static int an_probe_isa __P((device_t));
|
||||
static int an_attach_isa __P((device_t));
|
||||
static int an_detach_isa __P((device_t));
|
||||
|
||||
static int an_probe_isa(dev)
|
||||
static int
|
||||
an_probe_isa(dev)
|
||||
device_t dev;
|
||||
{
|
||||
int error = 0;
|
||||
|
@ -115,7 +115,8 @@ static int an_probe_pci __P((device_t));
|
||||
static int an_attach_pci __P((device_t));
|
||||
static int an_detach_pci __P((device_t));
|
||||
|
||||
static int an_probe_pci(device_t dev)
|
||||
static int
|
||||
an_probe_pci(device_t dev)
|
||||
{
|
||||
struct an_type *t;
|
||||
|
||||
@ -133,7 +134,8 @@ static int an_probe_pci(device_t dev)
|
||||
return(ENXIO);
|
||||
}
|
||||
|
||||
static int an_attach_pci(dev)
|
||||
static int
|
||||
an_attach_pci(dev)
|
||||
device_t dev;
|
||||
{
|
||||
u_int32_t command;
|
||||
|
Loading…
Reference in New Issue
Block a user