From patchwork Sun Oct 30 13:32:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 13005 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1803008wru; Sun, 30 Oct 2022 06:38:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5SezlGYbO8F/+9HjodUkCdn9JwfsqKW/WKbBKRueZ2vG6hT2KQMr72/fqsalScdi88AXeQ X-Received: by 2002:a17:90a:20c:b0:213:1179:1fff with SMTP id c12-20020a17090a020c00b0021311791fffmr9988465pjc.23.1667137130500; Sun, 30 Oct 2022 06:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667137130; cv=none; d=google.com; s=arc-20160816; b=0FBXImaSl77XhLPy7dym50lqrH5kiJmYYJViFsmo1ADjSAz0JpzjEF0hvM0098vE/M oDFq9r3GOcFw36TdVAPGe0wwJxkxrga12E9Y7Irk/UWzyLsICGYWY+qyQHFXbuP3+kUF 1skODcQXRzJeV4jTgrjMnHKcpjgFO+8iRbBjLXNxRRy1RQLflgtrlX1yWsDl4Db/s8zQ sSy9xtjQYekPyevcDuAVRmjGs2bOhaxbgLEP4sXpyOTDWcyqiLkou65tz9EWAOVRYp8R RsXQyQZfXXTOAYGAVUy6FhqxkoU+lCxcEUoXCHs00MQvGjTwkPziUkgsLrRy+W6x3yna JJ8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=ect7CUW3whk/jekELT8ewhs/AbnHcthL4OWXL1M6vak=; b=yPPM1pDDZj8tTeJXgMdT8qWPiVlg+NjYucs+CykI/EquwHQgRsDI5+gkfWkwNT/Qhg fCqY4EOIE1TEYoA8LzVcG28x4nkWL9ltMr9M+DUuvE3DS+itTME7u9CfSgS9AnggMjOS wBg/iwPx1PCrGb5QjXxlhN58DBb/Xh26dV5pCRD7QV9639r5lAdm24yHKD4bw0TiqqYt w+F9RrLGYCVuLab1e0V8Op5wzII64hyNNKORWKpLIzfeqZAfYWRlbnHvuJtGHyBXMIP7 mG2j37GWwCzwjuxZwCD7gk6SH31sdxydKDk09mcKwGInOgqJPiQmTliJyKbYnDzwuYxk 9yoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YxPCTAMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 82-20020a630455000000b0046fbe60d44bsi287380pge.704.2022.10.30.06.38.36; Sun, 30 Oct 2022 06:38:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YxPCTAMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229718AbiJ3NcM (ORCPT + 99 others); Sun, 30 Oct 2022 09:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiJ3NcK (ORCPT ); Sun, 30 Oct 2022 09:32:10 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0D46A1AC for ; Sun, 30 Oct 2022 06:32:09 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id p21so4794738plr.7 for ; Sun, 30 Oct 2022 06:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=ect7CUW3whk/jekELT8ewhs/AbnHcthL4OWXL1M6vak=; b=YxPCTAMe6zNXtmgdkxtzZrNqFcbZ2o5OFLTbvKNpsFWubS76jl9jrtCVbQ5Fa9zzw1 2zOzjI3M6aafgnGr90feo6vu/balKHzYpRQg0LbcouFqwzrCtb2mk1JLeoZKX9S43tqN uORP8YmpZ5xrlXKhZeQfz7FGgDTPRWSnpplDF87sObok+cUn/fkDZMhElhMri6qXAwA8 S3jBQ/AsoNtheX78saj4xzLSzwUyODD0EA1aBOqjPCaAJIFsf4U3hKWouAZ/n8P1TMdI 1k7PLDwJd8TBORxIr5pc+Yc21S18CsJTZP0EzVsNpGgBn7ZbLGjDuTyU6qnW5Hn05nyZ uboA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ect7CUW3whk/jekELT8ewhs/AbnHcthL4OWXL1M6vak=; b=sEds33hBBRTlcFTD9fNz5PwHWmbK3LOFBONLJervGnRLsZnYsjIJshb2ONxZAcX/bx QeMZ1pwywjQQa7QIANyxsY+54MpzLenE8e3z383T7xMXFiOwtfmBvJmjd8cBHpj9Nfm6 hCwvjwI5o4Es9ZG+QeBrmnJiUKtTZt1yWjv30Fun6a53OnwrLYRRI2iiRV0E2pDtFdg/ fHcFtamgCMnW7KWeJBw9k9/dtgmPM+ddNWQ4BF+RpJWQTbsv4Kdcbxj7IBpA10puz7rt jDeswtPtFEGB4j8Binhdl/7aUeiUTmigLuaTqDqm9iFyleGH1+G9uCUU1z5vWkBQgMky B2Mw== X-Gm-Message-State: ACrzQf2yBCH8zPBdDTz3jjkLs6H2cc2LiyiEZuYUhQLC+ztfY1ARH6t0 kDiSGRbvU48uYzNaXNNQc/U= X-Received: by 2002:a17:90b:1c06:b0:20a:f070:9f3c with SMTP id oc6-20020a17090b1c0600b0020af0709f3cmr9817614pjb.151.1667136729343; Sun, 30 Oct 2022 06:32:09 -0700 (PDT) Received: from zephyrus ([103.251.210.204]) by smtp.gmail.com with ESMTPSA id s2-20020a63ff42000000b00439f027789asm2392858pgk.59.2022.10.30.06.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Oct 2022 06:32:08 -0700 (PDT) Date: Sun, 30 Oct 2022 19:02:04 +0530 From: Yogesh Hegde To: gregkh@linuxfoundation.org Cc: philipp.g.hortmann@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8192e: Rename variables rateIndex and rateBitmap to avoid CamelCase Message-ID: <20221030133204.GA416592@zephyrus> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748119983344865678?= X-GMAIL-MSGID: =?utf-8?q?1748119983344865678?= Rename variables * rateIndex to rate_index * rateBitmap to rate_bitmap to avoid CamelCase which is not accepted by checkpatch.pl . Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index c9e495538e2c..767c746fc73d 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -2121,8 +2121,8 @@ static void _rtl92e_dm_end_sw_fsync(struct net_device *dev) static void _rtl92e_dm_start_sw_fsync(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); - u32 rateIndex; - u32 rateBitmap; + u32 rate_index; + u32 rate_bitmap; priv->rate_record = 0; priv->ContinueDiffCount = 0; @@ -2136,12 +2136,12 @@ static void _rtl92e_dm_start_sw_fsync(struct net_device *dev) priv->rtllib->fsync_firstdiff_ratethreshold = 200; priv->rtllib->fsync_seconddiff_ratethreshold = 200; } - for (rateIndex = 0; rateIndex <= 27; rateIndex++) { - rateBitmap = 1 << rateIndex; - if (priv->rtllib->fsync_rate_bitmap & rateBitmap) + for (rate_index = 0; rate_index <= 27; rate_index++) { + rate_bitmap = 1 << rate_index; + if (priv->rtllib->fsync_rate_bitmap & rate_bitmap) priv->rate_record += priv->stats.received_rate_histogram[1] - [rateIndex]; + [rate_index]; } if (timer_pending(&priv->fsync_timer)) del_timer_sync(&priv->fsync_timer);