From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755592AbbITRVU (ORCPT ); Sun, 20 Sep 2015 13:21:20 -0400 Received: from mail-qg0-f50.google.com ([209.85.192.50]:34087 "EHLO mail-qg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754820AbbITRQ0 (ORCPT ); Sun, 20 Sep 2015 13:16:26 -0400 From: =?UTF-8?q?Rapha=C3=ABl=20Beamonte?= To: Greg Kroah-Hartman Cc: =?UTF-8?q?Rapha=C3=ABl=20Beamonte?= , Cristina Opriceana , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCHv3 08/15] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: rename variable slide_beacon_adc_pwdb_statistics to sb_stats Date: Sun, 20 Sep 2015 13:14:20 -0400 Message-Id: <5d6f5a320c78fe35daecc9300bdfe91079148448.1442769012.git.raphael.beamonte@gmail.com> X-Mailer: git-send-email 2.5.1 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename variable to a shorter name to allow easier code refactoring in following patch. Signed-off-by: Raphaƫl Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 638bd5a..f56fb1b 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c @@ -4004,7 +4004,7 @@ static void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer, static u32 last_rssi, last_evm; static u32 sb_index; - static u32 slide_beacon_adc_pwdb_statistics; + static u32 sb_stats; static u32 last_beacon_adc_pwdb; struct rtl_80211_hdr_3addr *hdr; @@ -4098,8 +4098,8 @@ static void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer, if (prev_stats->bPacketBeacon) { /* record the beacon pwdb to the sliding window. */ - if (slide_beacon_adc_pwdb_statistics++ >= PHY_Beacon_RSSI_SLID_WIN_MAX) { - slide_beacon_adc_pwdb_statistics = PHY_Beacon_RSSI_SLID_WIN_MAX; + if (sb_stats++ >= PHY_Beacon_RSSI_SLID_WIN_MAX) { + sb_stats = PHY_Beacon_RSSI_SLID_WIN_MAX; last_beacon_adc_pwdb = priv->stats.Slide_Beacon_pwdb[sb_index]; priv->stats.Slide_Beacon_Total -= last_beacon_adc_pwdb; } @@ -4108,7 +4108,7 @@ static void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer, sb_index++; if (sb_index >= PHY_Beacon_RSSI_SLID_WIN_MAX) sb_index = 0; - prev_stats->RxPWDBAll = priv->stats.Slide_Beacon_Total / slide_beacon_adc_pwdb_statistics; + prev_stats->RxPWDBAll = priv->stats.Slide_Beacon_Total / sb_stats; if (prev_stats->RxPWDBAll >= 3) prev_stats->RxPWDBAll -= 3; } -- 2.5.1