aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2011-07-07 18:14:07 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-08 11:44:31 -0400
commitd2c7f7730e5660c812765acd57516f709ea35fc0 (patch)
tree3076c32a2142967c7df097765b5330a562547742 /drivers/net/wireless/ath/ath5k
parent633d006ee6a7229f1d2c60924084d902d60c0e5f (diff)
ath5k: fix misplaced or extraneous braces found by checkpatch.pl
Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r--drivers/net/wireless/ath/ath5k/ath5k.h3
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c14
-rw-r--r--drivers/net/wireless/ath/ath5k/base.h3
-rw-r--r--drivers/net/wireless/ath/ath5k/eeprom.c10
4 files changed, 14 insertions, 16 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h
index f53cf711b9e7..68163428fdb2 100644
--- a/drivers/net/wireless/ath/ath5k/ath5k.h
+++ b/drivers/net/wireless/ath/ath5k/ath5k.h
@@ -1011,8 +1011,7 @@ struct ath5k_capabilities {
1011 1011
1012/* size of noise floor history (keep it a power of two) */ 1012/* size of noise floor history (keep it a power of two) */
1013#define ATH5K_NF_CAL_HIST_MAX 8 1013#define ATH5K_NF_CAL_HIST_MAX 8
1014struct ath5k_nfcal_hist 1014struct ath5k_nfcal_hist {
1015{
1016 s16 index; /* current index into nfval */ 1015 s16 index; /* current index into nfval */
1017 s16 nfval[ATH5K_NF_CAL_HIST_MAX]; /* last few noise floors */ 1016 s16 nfval[ATH5K_NF_CAL_HIST_MAX]; /* last few noise floors */
1018}; 1017};
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 1b48ed87ca2f..ac8734254707 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -1265,12 +1265,11 @@ static int ath5k_common_padpos(struct sk_buff *skb)
1265 __le16 frame_control = hdr->frame_control; 1265 __le16 frame_control = hdr->frame_control;
1266 int padpos = 24; 1266 int padpos = 24;
1267 1267
1268 if (ieee80211_has_a4(frame_control)) { 1268 if (ieee80211_has_a4(frame_control))
1269 padpos += ETH_ALEN; 1269 padpos += ETH_ALEN;
1270 } 1270
1271 if (ieee80211_is_data_qos(frame_control)) { 1271 if (ieee80211_is_data_qos(frame_control))
1272 padpos += IEEE80211_QOS_CTL_LEN; 1272 padpos += IEEE80211_QOS_CTL_LEN;
1273 }
1274 1273
1275 return padpos; 1274 return padpos;
1276} 1275}
@@ -2199,13 +2198,12 @@ ath5k_intr(int irq, void *dev_id)
2199 ATH5K_DBG(sc, ATH5K_DEBUG_RESET, 2198 ATH5K_DBG(sc, ATH5K_DEBUG_RESET,
2200 "rx overrun, resetting\n"); 2199 "rx overrun, resetting\n");
2201 ieee80211_queue_work(sc->hw, &sc->reset_work); 2200 ieee80211_queue_work(sc->hw, &sc->reset_work);
2202 } 2201 } else
2203 else
2204 ath5k_schedule_rx(sc); 2202 ath5k_schedule_rx(sc);
2205 } else { 2203 } else {
2206 if (status & AR5K_INT_SWBA) { 2204 if (status & AR5K_INT_SWBA)
2207 tasklet_hi_schedule(&sc->beacontq); 2205 tasklet_hi_schedule(&sc->beacontq);
2208 } 2206
2209 if (status & AR5K_INT_RXEOL) { 2207 if (status & AR5K_INT_RXEOL) {
2210 /* 2208 /*
2211 * NB: the hardware should re-read the link when 2209 * NB: the hardware should re-read the link when
diff --git a/drivers/net/wireless/ath/ath5k/base.h b/drivers/net/wireless/ath/ath5k/base.h
index 3016562a7711..eb035cbe665c 100644
--- a/drivers/net/wireless/ath/ath5k/base.h
+++ b/drivers/net/wireless/ath/ath5k/base.h
@@ -96,8 +96,7 @@ struct ath5k_txq {
96/* 96/*
97 * State for LED triggers 97 * State for LED triggers
98 */ 98 */
99struct ath5k_led 99struct ath5k_led {
100{
101 char name[ATH5K_LED_MAX_NAME_LEN + 1]; /* name of the LED in sysfs */ 100 char name[ATH5K_LED_MAX_NAME_LEN + 1]; /* name of the LED in sysfs */
102 struct ath5k_softc *sc; /* driver state */ 101 struct ath5k_softc *sc; /* driver state */
103 struct led_classdev led_dev; /* led classdev */ 102 struct led_classdev led_dev; /* led classdev */
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.c b/drivers/net/wireless/ath/ath5k/eeprom.c
index 4198f4ef88d9..0c9d8b189559 100644
--- a/drivers/net/wireless/ath/ath5k/eeprom.c
+++ b/drivers/net/wireless/ath/ath5k/eeprom.c
@@ -644,10 +644,12 @@ ath5k_eeprom_init_11bg_2413(struct ath5k_hw *ah, unsigned int mode, int offset)
644static inline void 644static inline void
645ath5k_get_pcdac_intercepts(struct ath5k_hw *ah, u8 min, u8 max, u8 *vp) 645ath5k_get_pcdac_intercepts(struct ath5k_hw *ah, u8 min, u8 max, u8 *vp)
646{ 646{
647 static const u16 intercepts3[] = 647 static const u16 intercepts3[] = {
648 { 0, 5, 10, 20, 30, 50, 70, 85, 90, 95, 100 }; 648 0, 5, 10, 20, 30, 50, 70, 85, 90, 95, 100
649 static const u16 intercepts3_2[] = 649 };
650 { 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 }; 650 static const u16 intercepts3_2[] = {
651 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
652 };
651 const u16 *ip; 653 const u16 *ip;
652 int i; 654 int i;
653 655