ath11k: fix unnecessary brace warnings
PATCH 1/1 ath11k: fix unnecessary brace warnings
drivers/net/wireless/ath/ath11k/core.c:193: braces {} are not necessary for single statement blocks drivers/net/wireless/ath/ath11k/dp_rx.c:1306: braces {} are not necessary for single statement blocks drivers/net/wireless/ath/ath11k/dp_rx.c:2647: braces {} are not necessary for single statement blocks drivers/net/wireless/ath/ath11k/dp_rx.c:2676: braces {} are not necessary for single statement blocks drivers/net/wireless/ath/ath11k/mac.c:5123: braces {} are not necessary for single statement blocks
Signed-off-by Karthikeyan Periyasamy <[email protected]>
--- drivers/net/wireless/ath/ath11k/core.c | 3 +-- drivers/net/wireless/ath/ath11k/dp_rx.c | 10 ++++------ drivers/net/wireless/ath/ath11k/mac.c | 3 +-- 3 files changed, 6 insertions(+), 10 deletions(-)
drivers/net/wireless/ath/ath11k/core.c +1 -2
@@ -190,9 +190,8 @@ static int ath11k_core_fetch_board_data_api_n(struct ath11k_base *sc, bd->fw =ath11k_fetch_fw_file (sc, sc->hw_params.fw.dir, filename); -if (IS_ERR (bd->fw)) { +if (IS_ERR (bd->fw))return PTR_ERR (bd->fw); - } data = bd->fw->data; len = bd->fw->size;
drivers/net/wireless/ath/ath11k/dp_rx.c +4 -6
@@ -1253,9 +1253,8 @@ static int ath11k_htt_pull_ppdu_stats(struct ath11k_base *ab, goto exit; } -if (ath11k_debug_is_pktlog_lite_mode_enabled (ar)) { +if (ath11k_debug_is_pktlog_lite_mode_enabled (ar))trace_ath11k_htt_ppdu_stats (ar, skb->data, len); - } ppdu_info =ath11k_dp_htt_get_ppdu_desc (ar, ppdu_id);if (!ppdu_info) {
@@ -2596,9 +2595,8 @@ int ath11k_dp_rx_process_mon_status(struct ath11k_base *ab, int mac_id,memset (&ppdu_info,0 ,sizeof (ppdu_info)); ppdu_info.peer_id =HAL_INVALID_PEERID ; -if (ath11k_debug_is_pktlog_rx_stats_enabled (ar)) { +if (ath11k_debug_is_pktlog_rx_stats_enabled (ar))trace_ath11k_htt_rxdesc (ar, skb->data,DP_RX_BUFFER_SIZE ); - } hal_status =ath11k_hal_rx_parse_mon_status (ab, &ppdu_info, (u8 *)skb->data);
@@ -2625,9 +2623,9 @@ int ath11k_dp_rx_process_mon_status(struct ath11k_base *ab, int mac_id, arsta = (struct ath11k_sta *)peer->sta->drv_priv;ath11k_dp_rx_update_peer_stats (arsta, &ppdu_info); -if (ath11k_debug_is_pktlog_peer_valid (ar, peer->addr)) { +if (ath11k_debug_is_pktlog_peer_valid (ar, peer->addr))trace_ath11k_htt_rxdesc (ar, skb->data,DP_RX_BUFFER_SIZE ); - } +spin_unlock_bh (&ab->data_lock);rcu_read_unlock ();
drivers/net/wireless/ath/ath11k/mac.c +1 -2
@@ -5031,9 +5031,8 @@ static void ath11k_mac_disable_peer_fixed_rate(void *data, } ret =wait_for_completion_timeout (&ar->bss_survey_done,3 *HZ ); -if (ret ==0 ) { +if (ret ==0 )ath11k_warn (ar->ab,"bss channel survey timed out\n" ); - } } static int ath11k_get_survey(struct ieee80211_hw *hw, int idx,
Signature · 7 lines
1.9.1 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k