ral: clean up empty lines in .c and .h files

This commit is contained in:
Mateusz Guzik 2020-09-01 21:56:10 +00:00
parent 8545078787
commit 790cd2071a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365165
8 changed files with 7 additions and 15 deletions

View File

@ -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);

View File

@ -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)
{

View File

@ -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)

View File

@ -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);

View File

@ -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 */

View File

@ -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

View File

@ -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;

View File

@ -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) + \