diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-09-01 21:56:10 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-09-01 21:56:10 +0000 |
commit | 790cd2071a558b4865b2abc709f44d90b44631ef (patch) | |
tree | 5f9bd259708911244e580e2d3c8cca43adcc9599 | |
parent | 854507878787209bbf461aaf409e32857953e029 (diff) | |
download | src-790cd2071a558b4865b2abc709f44d90b44631ef.tar.gz src-790cd2071a558b4865b2abc709f44d90b44631ef.zip |
ral: clean up empty lines in .c and .h files
Notes
Notes:
svn path=/head/; revision=365165
-rw-r--r-- | sys/dev/ral/if_ral_pci.c | 6 | ||||
-rw-r--r-- | sys/dev/ral/rt2560.c | 3 | ||||
-rw-r--r-- | sys/dev/ral/rt2560reg.h | 1 | ||||
-rw-r--r-- | sys/dev/ral/rt2661.c | 2 | ||||
-rw-r--r-- | sys/dev/ral/rt2661reg.h | 1 | ||||
-rw-r--r-- | sys/dev/ral/rt2661var.h | 2 | ||||
-rw-r--r-- | sys/dev/ral/rt2860.c | 3 | ||||
-rw-r--r-- | sys/dev/ral/rt2860reg.h | 4 |
8 files changed, 7 insertions, 15 deletions
diff --git a/sys/dev/ral/if_ral_pci.c b/sys/dev/ral/if_ral_pci.c index 02ef508406ee..e1a89bde27b5 100644 --- a/sys/dev/ral/if_ral_pci.c +++ b/sys/dev/ral/if_ral_pci.c @@ -231,7 +231,7 @@ ral_pci_attach(device_t dev) sc->sc_st = rman_get_bustag(psc->mem); sc->sc_sh = rman_get_bushandle(psc->mem); sc->sc_invalid = 1; - + rid = 0; if (ral_msi_disable == 0) { count = 1; @@ -265,7 +265,7 @@ ral_pci_attach(device_t dev) return error; } sc->sc_invalid = 0; - + return 0; } @@ -274,7 +274,7 @@ ral_pci_detach(device_t dev) { struct ral_pci_softc *psc = device_get_softc(dev); struct rt2560_softc *sc = &psc->u.sc_rt2560; - + /* check if device was removed */ sc->sc_invalid = !bus_child_present(dev); diff --git a/sys/dev/ral/rt2560.c b/sys/dev/ral/rt2560.c index 2c7b7e0e96cc..0b127c79d640 100644 --- a/sys/dev/ral/rt2560.c +++ b/sys/dev/ral/rt2560.c @@ -342,7 +342,7 @@ rt2560_detach(void *xsc) { struct rt2560_softc *sc = xsc; struct ieee80211com *ic = &sc->sc_ic; - + rt2560_stop(sc); ieee80211_ifdetach(ic); @@ -2454,7 +2454,6 @@ rt2560_read_config(struct rt2560_softc *sc) sc->rssi_corr, val); } - static void rt2560_scan_start(struct ieee80211com *ic) { diff --git a/sys/dev/ral/rt2560reg.h b/sys/dev/ral/rt2560reg.h index 6860d1ea082c..c41149c99146 100644 --- a/sys/dev/ral/rt2560reg.h +++ b/sys/dev/ral/rt2560reg.h @@ -115,7 +115,6 @@ #define RT2560_SECCSR1 0x0158 /* WEP control */ #define RT2560_BBPCSR1 0x015c /* BBP TX Configuration */ - /* possible flags for register RXCSR0 */ #define RT2560_DISABLE_RX (1 << 0) #define RT2560_DROP_CRC_ERROR (1 << 1) diff --git a/sys/dev/ral/rt2661.c b/sys/dev/ral/rt2661.c index f0a984bf1c9e..4625121ae0a5 100644 --- a/sys/dev/ral/rt2661.c +++ b/sys/dev/ral/rt2661.c @@ -332,7 +332,7 @@ rt2661_detach(void *xsc) { struct rt2661_softc *sc = xsc; struct ieee80211com *ic = &sc->sc_ic; - + RAL_LOCK(sc); rt2661_stop_locked(sc); RAL_UNLOCK(sc); diff --git a/sys/dev/ral/rt2661reg.h b/sys/dev/ral/rt2661reg.h index 3bed3d12dd2c..53f9bcde6d7b 100644 --- a/sys/dev/ral/rt2661reg.h +++ b/sys/dev/ral/rt2661reg.h @@ -119,7 +119,6 @@ #define RT2661_IO_CNTL_CSR 0x3498 #define RT2661_MCU_CODE_BASE 0x4000 - /* possible flags for register HOST_CMD_CSR */ #define RT2661_KICK_CMD (1 << 7) /* Host to MCU (8051) command identifiers */ diff --git a/sys/dev/ral/rt2661var.h b/sys/dev/ral/rt2661var.h index 7adcdb8096a6..9871bd9454aa 100644 --- a/sys/dev/ral/rt2661var.h +++ b/sys/dev/ral/rt2661var.h @@ -114,7 +114,7 @@ struct rt2661_softc { * The same in both up to here * ------------------------------------------------ */ - + int sc_flags; #define RAL_FW_LOADED 0x1 #define RAL_INPUT_RUNNING 0x2 diff --git a/sys/dev/ral/rt2860.c b/sys/dev/ral/rt2860.c index 4ecab1eb3f99..d83174e61d9e 100644 --- a/sys/dev/ral/rt2860.c +++ b/sys/dev/ral/rt2860.c @@ -504,7 +504,6 @@ rt2860_dma_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, int error) *(bus_addr_t *)arg = segs[0].ds_addr; } - static int rt2860_alloc_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring) { @@ -2591,7 +2590,7 @@ rt5390_set_chan(struct rt2860_softc *sc, u_int chan) rf = MIN(rf, 0x5f); if (tmp != rf) rt2860_mcu_cmd(sc, 0x74, (tmp << 8 ) | rf, 0); - + if (sc->mac_ver == 0x5390) { if (chan <= 4) rf = 0x73; diff --git a/sys/dev/ral/rt2860reg.h b/sys/dev/ral/rt2860reg.h index f79874e23994..52fe14096f98 100644 --- a/sys/dev/ral/rt2860reg.h +++ b/sys/dev/ral/rt2860reg.h @@ -210,7 +210,6 @@ #define RT2860_H2M_BBPAGENT 0x7028 #define RT2860_BCN_BASE(vap) (0x7800 + (vap) * 512) - /* possible flags for RT2860_PCI_CFG */ #define RT2860_PCI_CFG_USB (1 << 17) #define RT2860_PCI_CFG_PCI (1 << 16) @@ -699,13 +698,11 @@ #define RT2860_H2M_BUSY (1 << 24) #define RT2860_TOKEN_NO_INTR 0xff - /* possible flags for MCU command RT2860_MCU_CMD_LEDS */ #define RT2860_LED_RADIO (1 << 13) #define RT2860_LED_LINK_2GHZ (1 << 14) #define RT2860_LED_LINK_5GHZ (1 << 15) - /* possible flags for RT3020 RF register 1 */ #define RT3070_RF_BLOCK (1 << 0) #define RT3070_PLL_PD (1 << 1) @@ -897,7 +894,6 @@ struct rt2860_rxwi { uint16_t reserved2; } __packed; - /* first DMA segment contains TXWI + 802.11 header + 32-bit padding */ #define RT2860_TXWI_DMASZ \ (sizeof (struct rt2860_txwi) + \ |