From 2db2614716e4d99eaee598a6f2a5b377fa183a26 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 3 Sep 2017 09:31:34 -0700 Subject: [PATCH] qcacld-3.0: Rename pHddCtx in wlan_hdd_wowl.c The Linux Coding Style frowns upon mixed-case names and so-called Hungarian notation, so rename pHddCtx to align with the Coding Style. Change-Id: I8df41b44d56dcc6365e7ae634de02f2273f2fc75 CRs-Fixed: 2103670 --- core/hdd/src/wlan_hdd_wowl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_wowl.c b/core/hdd/src/wlan_hdd_wowl.c index 3854f061848e..06784d7d6f1c 100644 --- a/core/hdd/src/wlan_hdd_wowl.c +++ b/core/hdd/src/wlan_hdd_wowl.c @@ -109,7 +109,7 @@ bool hdd_add_wowl_ptrn(struct hdd_adapter *pAdapter, const char *ptrn) const char *temp; tHalHandle hHal = WLAN_HDD_GET_HAL_CTX(pAdapter); uint8_t sessionId = pAdapter->sessionId; - struct hdd_context *pHddCtx = WLAN_HDD_GET_CTX(pAdapter); + struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(pAdapter); len = find_ptrn_len(ptrn); @@ -119,7 +119,7 @@ bool hdd_add_wowl_ptrn(struct hdd_adapter *pAdapter, const char *ptrn) */ while (len >= 11) { /* Detect duplicate pattern */ - for (i = 0; i < pHddCtx->config->maxWoWFilters; i++) { + for (i = 0; i < hdd_ctx->config->maxWoWFilters; i++) { if (g_hdd_wowl_ptrns[i] == NULL) continue; @@ -136,7 +136,7 @@ bool hdd_add_wowl_ptrn(struct hdd_adapter *pAdapter, const char *ptrn) first_empty_slot = -1; /* Find an empty slot to store the pattern */ - for (i = 0; i < pHddCtx->config->maxWoWFilters; i++) { + for (i = 0; i < hdd_ctx->config->maxWoWFilters; i++) { if (g_hdd_wowl_ptrns[i] == NULL) { first_empty_slot = i; break; @@ -269,11 +269,11 @@ bool hdd_del_wowl_ptrn(struct hdd_adapter *pAdapter, const char *ptrn) bool patternFound = false; QDF_STATUS qdf_ret_status; uint8_t sessionId = pAdapter->sessionId; - struct hdd_context *pHddCtx = WLAN_HDD_GET_CTX(pAdapter); + struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(pAdapter); /* Detect pattern */ for (id = 0; - id < pHddCtx->config->maxWoWFilters + id < hdd_ctx->config->maxWoWFilters && g_hdd_wowl_ptrns[id] != NULL; id++) { if (!strcmp(ptrn, g_hdd_wowl_ptrns[id])) { patternFound = true;