an: clean up empty lines in .c and .h files
This commit is contained in:
parent
4e12cd7f0b
commit
dedcfeb6c6
@ -152,7 +152,6 @@ struct an_rssi_entry {
|
||||
u_int8_t an_rss_dbm;
|
||||
};
|
||||
|
||||
|
||||
struct an_ltv_key {
|
||||
u_int16_t an_len;
|
||||
u_int16_t an_type;
|
||||
@ -642,7 +641,6 @@ struct an_rxframe {
|
||||
u_int8_t an_gaplen; /* 0x32 */
|
||||
} __packed;
|
||||
|
||||
|
||||
/* Do not modify this unless you are modifying LEAP itself */
|
||||
#define LEAP_USERNAME_MAX 32
|
||||
#define LEAP_PASSWORD_MAX 32
|
||||
|
@ -1259,7 +1259,6 @@ an_intr(void *xsc)
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
an_cmd_struct(struct an_softc *sc, struct an_command *cmd,
|
||||
struct an_reply *reply)
|
||||
@ -1572,7 +1571,6 @@ an_write_record(struct an_softc *sc, struct an_ltv_gen *ltv)
|
||||
return(EIO);
|
||||
}
|
||||
|
||||
|
||||
if (reply.an_status & AN_CMD_QUAL_MASK) {
|
||||
if_printf(sc->an_ifp,
|
||||
"failed to write RID 2 %x %x %x %x %x, %d\n",
|
||||
@ -1842,7 +1840,6 @@ an_setdef(struct an_softc *sc, struct an_req *areq)
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/* Reinitialize the card. */
|
||||
if (ifp->if_flags)
|
||||
an_init_locked(sc);
|
||||
@ -2867,7 +2864,6 @@ an_start_locked(struct ifnet *ifp)
|
||||
bcopy((caddr_t)&sc->an_txbuf, &buf[0x44],
|
||||
tx_frame_802_3.an_tx_802_3_payload_len);
|
||||
|
||||
|
||||
bzero(&an_tx_desc, sizeof(an_tx_desc));
|
||||
an_tx_desc.an_offset = 0;
|
||||
an_tx_desc.an_eoc = 1;
|
||||
@ -3044,7 +3040,6 @@ int an_sigitems; /* number of cached entries */
|
||||
struct an_sigcache an_sigcache[MAXANCACHE]; /* array of cache entries */
|
||||
int an_nextitem; /* index/# of entries */
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* control variables for cache filtering. Basic idea is
|
||||
@ -3142,7 +3137,6 @@ an_cache_store(struct an_softc *sc, struct ether_header *eh, struct mbuf *m,
|
||||
* if table full, then we need to replace LRU entry
|
||||
*/
|
||||
else {
|
||||
|
||||
/* check for space in cache table
|
||||
* note: an_nextitem also holds number of entries
|
||||
* added in the cache table
|
||||
@ -3183,7 +3177,6 @@ an_cache_store(struct an_softc *sc, struct ether_header *eh, struct mbuf *m,
|
||||
}
|
||||
bcopy( eh->ether_shost, sc->an_sigcache[cache_slot].macsrc, 6);
|
||||
|
||||
|
||||
switch (an_cache_mode) {
|
||||
case DBM:
|
||||
if (sc->an_have_rssimap) {
|
||||
@ -3553,7 +3546,6 @@ cmdreset(struct ifnet *ifp)
|
||||
|
||||
FLASH_DELAY(sc, 1000); /* WAS 600 12/7/00 */
|
||||
|
||||
|
||||
if (!(status = WaitBusy(ifp, 100))) {
|
||||
if_printf(ifp, "Waitbusy hang AFTER RESET =%d\n", status);
|
||||
AN_UNLOCK(sc);
|
||||
@ -3603,7 +3595,6 @@ flashgchar(struct ifnet *ifp, int matchbyte, int dwelltime)
|
||||
int success = -1;
|
||||
struct an_softc *sc = ifp->if_softc;
|
||||
|
||||
|
||||
do {
|
||||
rchar = CSR_READ_2(sc, AN_SW1(sc->mpi350));
|
||||
|
||||
@ -3676,7 +3667,6 @@ flashpchar(struct ifnet *ifp, int byte, int dwelltime)
|
||||
echo = CSR_READ_2(sc, AN_SW1(sc->mpi350));
|
||||
} while (dwelltime >= 0 && echo != byte);
|
||||
|
||||
|
||||
CSR_WRITE_2(sc, AN_SW1(sc->mpi350), 0);
|
||||
|
||||
return echo == byte;
|
||||
|
@ -88,7 +88,6 @@ static device_method_t an_pccard_methods[] = {
|
||||
DEVMETHOD(device_attach, an_pccard_attach),
|
||||
DEVMETHOD(device_detach, an_detach),
|
||||
DEVMETHOD(device_shutdown, an_shutdown),
|
||||
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
@ -147,7 +146,7 @@ an_pccard_attach(device_t dev)
|
||||
error = an_attach(sc, flags);
|
||||
if (error)
|
||||
goto fail;
|
||||
|
||||
|
||||
/*
|
||||
* Must setup the interrupt after the an_attach to prevent racing.
|
||||
*/
|
||||
|
@ -242,7 +242,7 @@ static int
|
||||
an_suspend_pci(device_t dev)
|
||||
{
|
||||
an_shutdown(dev);
|
||||
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -354,7 +354,6 @@ struct an_rxframe_802_3 {
|
||||
};
|
||||
#define AN_RXGAP_MAX 8
|
||||
|
||||
|
||||
struct an_txframe_802_3 {
|
||||
/*
|
||||
* Transmit 802.3 header structure.
|
||||
|
Loading…
x
Reference in New Issue
Block a user