From 683726a56b44ce905bb3a2b409eee6bdc0527a9e Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Fri, 7 Sep 2018 15:10:40 -0700 Subject: [PATCH] qcacld-3.0: HDD: Fix checkpatch code indent issues Fix checkpatch code indent issues. CRs-Fixed: 2311614 Change-Id: Iee0010a4a78f7da094a7459fd60a952277edec4b --- core/hdd/src/wlan_hdd_assoc.c | 2 +- core/hdd/src/wlan_hdd_cfg80211.c | 16 ++++++++-------- core/hdd/src/wlan_hdd_p2p.c | 2 +- core/hdd/src/wlan_hdd_tx_rx.c | 6 +++--- core/hdd/src/wlan_hdd_wext.c | 4 ++-- core/hdd/src/wlan_hdd_wmm.c | 7 +++---- 6 files changed, 18 insertions(+), 19 deletions(-) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 25a43b69047e..eb36ae9c4ba4 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -1857,7 +1857,7 @@ static QDF_STATUS hdd_dis_connect_handler(struct hdd_adapter *adapter, * progress so no need to set state to eConnectionState_NotConnected */ if ((eConnectionState_Connecting != sta_ctx->conn_info.connState)) { - hdd_conn_set_connection_state(adapter, + hdd_conn_set_connection_state(adapter, eConnectionState_NotConnected); } pmo_ucfg_flush_gtk_offload_req(adapter->vdev); diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 628cb801546b..3ae9b4ea54a5 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -9707,16 +9707,16 @@ static int hdd_set_clear_connectivity_check_stats_info( arp_stats_params->pkt_type_bitmap; if (pkt_bitmap & CONNECTIVITY_CHECK_SET_ARP) { - if (!tb[STATS_GW_IPV4]) { - hdd_err("GW ipv4 address is not present"); - err = -EINVAL; - goto end; - } - arp_stats_params->ip_addr = + if (!tb[STATS_GW_IPV4]) { + hdd_err("GW ipv4 address is not present"); + err = -EINVAL; + goto end; + } + arp_stats_params->ip_addr = nla_get_u32(tb[STATS_GW_IPV4]); - arp_stats_params->pkt_type = + arp_stats_params->pkt_type = WLAN_NUD_STATS_ARP_PKT_TYPE; - adapter->track_arp_ip = + adapter->track_arp_ip = arp_stats_params->ip_addr; } diff --git a/core/hdd/src/wlan_hdd_p2p.c b/core/hdd/src/wlan_hdd_p2p.c index 6b35d250d06d..7fdfd868348e 100644 --- a/core/hdd/src/wlan_hdd_p2p.c +++ b/core/hdd/src/wlan_hdd_p2p.c @@ -962,7 +962,7 @@ void __hdd_indicate_mgmt_frame(struct hdd_adapter *adapter, * as destination, we are dropping * action frame */ - return; + return; } } } diff --git a/core/hdd/src/wlan_hdd_tx_rx.c b/core/hdd/src/wlan_hdd_tx_rx.c index 925e2d6b70cf..00259d1aa4c8 100644 --- a/core/hdd/src/wlan_hdd_tx_rx.c +++ b/core/hdd/src/wlan_hdd_tx_rx.c @@ -741,10 +741,10 @@ void hdd_tx_rx_collect_connectivity_stats_info(struct sk_buff *skb, } else if (action == PKT_TYPE_TX_HOST_FW_SENT && adapter->hdd_stats.hdd_tcp_stats. is_tcp_ack_sent) { - /* host receives tx completion */ - ++adapter->hdd_stats.hdd_tcp_stats. + /* host receives tx completion */ + ++adapter->hdd_stats.hdd_tcp_stats. tx_tcp_ack_host_fw_sent; - adapter->hdd_stats.hdd_tcp_stats. + adapter->hdd_stats.hdd_tcp_stats. is_tcp_ack_sent = false; } } diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index 37910336f7ec..562ea1490c3c 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -3419,8 +3419,8 @@ int hdd_set_ldpc(struct hdd_adapter *adapter, int value) return -EINVAL; } } else if (!config->enable_rx_ldpc) { - hdd_err("LDCP is already disabled"); - return 0; + hdd_err("LDCP is already disabled"); + return 0; } status = ucfg_mlme_get_ht_cap_info(hdd_ctx->hdd_psoc, &ht_cap_info); if (QDF_STATUS_SUCCESS != status) { diff --git a/core/hdd/src/wlan_hdd_wmm.c b/core/hdd/src/wlan_hdd_wmm.c index 9c41993f2945..16981e7e5cf8 100644 --- a/core/hdd/src/wlan_hdd_wmm.c +++ b/core/hdd/src/wlan_hdd_wmm.c @@ -1471,10 +1471,9 @@ void hdd_wmm_classify_pkt(struct hdd_adapter *adapter, hdd_debug("Ether II VLAN tagged IP Packet, tos is %d", tos); #endif /* HDD_WMM_DEBUG */ - } else - if ((ntohs(eth_hdr->eth_IIv.h_vlan_encapsulated_proto) - < WLAN_MIN_PROTO) - && (eth_hdr->eth_8023v.h_snap.dsap == + } else if ((ntohs(eth_hdr->eth_IIv.h_vlan_encapsulated_proto) + < WLAN_MIN_PROTO) && + (eth_hdr->eth_8023v.h_snap.dsap == WLAN_SNAP_DSAP) && (eth_hdr->eth_8023v.h_snap.ssap == WLAN_SNAP_SSAP)