From a540edea2594f1e6626853a7a3885cd0bfea1447 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 31 Mar 2019 14:26:43 -0700 Subject: [PATCH] qcacld-3.0: Remove HDD identifier staMac The Linux Coding Style frowns upon mixed-case names so variable staMac in hdd_get_interface_info() is not compliant. But rather than rename it, just remove it, since its use does not really improve the code. Change-Id: If4db592fe2b7728d7c03c1415c9d9e8aeb7c1cf2 CRs-Fixed: 2427181 --- core/hdd/src/wlan_hdd_stats.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index 8a1fae05f533..13b94390fd54 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -543,7 +543,6 @@ static tSirWifiInterfaceMode hdd_map_device_to_ll_iface_mode(int deviceMode) bool hdd_get_interface_info(struct hdd_adapter *adapter, struct wifi_interface_info *info) { - uint8_t *staMac = NULL; struct hdd_station_ctx *sta_ctx; mac_handle_t mac_handle = adapter->hdd_ctx->mac_handle; /* pre-existing layering violation */ @@ -570,12 +569,9 @@ bool hdd_get_interface_info(struct hdd_adapter *adapter, if ((eConnectionState_Associated == sta_ctx->conn_info.conn_state) && (!sta_ctx->conn_info.is_authenticated)) { - staMac = - (uint8_t *) &(adapter->mac_addr. - bytes[0]); hdd_err("client " MAC_ADDRESS_STR " is in the middle of WPS/EAPOL exchange.", - MAC_ADDR_ARRAY(staMac)); + MAC_ADDR_ARRAY(adapter->mac_addr.bytes)); info->state = WIFI_AUTHENTICATING; } if (eConnectionState_Associated ==