Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp1799324rwj; Sun, 30 Oct 2022 06:39:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70/jZ9CBGeh0+wz6j2/hjre/DkEMNSS82SP6ldAEcx9ogV6ZdrkML8WelmQat3HAYf0ATx X-Received: by 2002:a63:4c17:0:b0:43b:e31c:efd0 with SMTP id z23-20020a634c17000000b0043be31cefd0mr8238077pga.213.1667137155091; Sun, 30 Oct 2022 06:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667137155; cv=none; d=google.com; s=arc-20160816; b=jhO42Njd3L3z6QvNqoEd6qSyCh/jjPkQFWMy6fVKriDR1/Osxb9bnUdIKGitMiWj/6 U+Q7GalMmsa7nA6rfPHXgdfqfmDWL7asYCxEmbd69d2/+RrGTd6fLZF3uxGQIByT6pqb a0MKJHFCJ89tyyt88Yqt6WZfBtNfmTKwOYBOh4nPR7kscxOokLfLHlCseGaT/LnFoo6i 7gZXcj/bip66WnPI97T2MJOf3amF5QGmOG038Mh/OjHBL+FCOLhagOqHSe+xiHAyevOm EVOpII7Os/4ngTvGyh/8B+D4oCGYNXUK1heRJ3xGU1aVOoDK1afW4MPYtM4VOSQ1gHBX vgvA== 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 Return-Path: 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.39.03; Sun, 30 Oct 2022 06:39:15 -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-Type: text/plain; charset=us-ascii 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 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); -- 2.25.1