Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1166086rdb; Fri, 22 Dec 2023 18:03:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9veBX9KkcM80+2w020zfBZnhpm1bUyhTRs0MutlvgZpt9YbazsBhvZ1guAyWmihXFFGiD X-Received: by 2002:a05:6808:118c:b0:3b8:b063:9b78 with SMTP id j12-20020a056808118c00b003b8b0639b78mr2479661oil.106.1703297037925; Fri, 22 Dec 2023 18:03:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703297037; cv=none; d=google.com; s=arc-20160816; b=xFurGktzbKt846eNz5bGrinFds7n02Z9lvqo2zxc2qAg5DI50bbqoy7mR4aaLqJwFP J4NuLtcLpJM0HGPQc3SmN0QfwMWeqdhXFYveMPpGxxSddwCxLkx/bGrDtn66FXxZv/+f krD8cBBJEMEVqCeolcZPvve+MD3j0UOFw6O/Cwq/aqzvpiC4TH2+NTUEl4yao0MOIqd7 RFx3ztlZYRFLOGS9zMkHWJfhgxYdCGau69hqLQhmxZptLrt2hOLMkx5PHdCObAecfdiu 8AGP76M900J4B+7bDO6TsMA/WsjJW6Nq4Rz4MKNIqwIiwRXy1S1PBR2EZbblco2HapnG ZoEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5nh726kqqk/+4viMnId5Yr1Sl4uR2fT43T5z2Hat3BI=; fh=p32Pg0zBdFjDUOpUp1txX3SLnGswM8C/CMMa7TUpsLA=; b=LxH5LGDi8TBIam215rPmiKpDYYfS8M//tQ6eoLA0VXgdK1HzaMnY4mD2/f2mhq9u10 aEqYN2SDahCVdo4xz4oceKkGjf+ese2L3jaHAf8Dz7kitc9/rpMC1tVrlwK06mBIdhNe C6vRqX5I8gP1Z480OAksQkkAHLAv7u3zOEjfoxA9jSiIbh/UXOHtOE9nKbmKzyBRwdSn eXr72GeGavPyqB8qJHS45LvGZc3gPHBeqDRceO/1LhkAr6X5fpc+zfYVS8ncwvtu2emE +PT8U/IJxKPvLkKuQ1xW39lX8xQXXgiTSJkmg+bcNSOGU+X83kqvzOBw2QlCy1521ez+ Rdsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=OCNN5ZkF; spf=pass (google.com: domain of linux-kernel+bounces-10200-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10200-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cw5-20020a056a00450500b006d96368c41esi279918pfb.192.2023.12.22.18.03.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 18:03:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10200-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=OCNN5ZkF; spf=pass (google.com: domain of linux-kernel+bounces-10200-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10200-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8FCAD287B5E for ; Sat, 23 Dec 2023 02:03:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C64B2511A; Sat, 23 Dec 2023 02:00:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="OCNN5ZkF" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-il1-f181.google.com (mail-il1-f181.google.com [209.85.166.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4319F18B1E for ; Sat, 23 Dec 2023 02:00:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=darkphysics.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=darkphysics.net Received: by mail-il1-f181.google.com with SMTP id e9e14a558f8ab-35d3846fac9so9794985ab.2 for ; Fri, 22 Dec 2023 18:00:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1703296800; x=1703901600; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5nh726kqqk/+4viMnId5Yr1Sl4uR2fT43T5z2Hat3BI=; b=OCNN5ZkFyCJrSfoZNlJkTbl2DIT/NguaC1PPldnaGa6Oe/4IzyNdboncL1QXJQpBbJ 3I9/w6NYmfCb2Hx18Kg5V8724M0qTITVxsgr442KjPnyh+zCwYYkYaZPI6SKrUO516Mc zBDRUYhcISRQrbFRSb1qnMI4/YHMg1o36VylD7R26+xZVAgc1HeRn1Mp3a/v5vyZapEK cvYx5iwlXt/c/nPiRnv5W+TUJze9OUFEE7CjGFAOC3sRVlsLNFTg0cWOacJ97gH1mMxq U6nR9S/rCZgwtik61o6Ye4txZiZxiu3AdakgJbZw79WiVXso1IPyMgOCjONwMWHh6RW4 yOsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703296800; x=1703901600; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5nh726kqqk/+4viMnId5Yr1Sl4uR2fT43T5z2Hat3BI=; b=afjNCLKYN+VDqd+gDeUpT0hFQlRKAVPkjkPGzXWNGau8dDUncErY9/uivGeN2RCZ9i ++nzXxMOzqdkYX+x8pyW6ExyneS2lPFhQQDTwJal64VqkFKqZdh9cwT/yFqXYrLOO3zK GMto7LXKxogHc3pMFPICiNIjd9RwZQJYvpVvD6jX9Wbf/v8/v+J9DPigcDOPuaOxKcYR fMUtJcACq/k9Gcopr9bFT10YWJ+IBFJZ572cCGV6k82nlnLm2qvlSqEQn0kWXNITC1OI KXnatHvQY26zVC4uMhLgWENcobObDTHMDB6GSwnMxyS+B/XWD+7H+Ylf/j+wCZAzzyDk 5aOg== X-Gm-Message-State: AOJu0YzoQa0COnMMMXSaTUXfNUF1e5eqQDHEU66usoRw0G6qT+eLAgea v7Ej0taZdSfYHDzhJ58wHuic2K2zN7L16A== X-Received: by 2002:a05:6e02:15c2:b0:35d:59a2:6909 with SMTP id q2-20020a056e0215c200b0035d59a26909mr3217443ilu.54.1703296800539; Fri, 22 Dec 2023 18:00:00 -0800 (PST) Received: from oatmeal.darkphysics (c-76-146-178-2.hsd1.wa.comcast.net. [76.146.178.2]) by smtp.gmail.com with ESMTPSA id kg15-20020a170903060f00b001d3edef115dsm4106546plb.20.2023.12.22.17.59.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 17:59:59 -0800 (PST) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH 17/20] Staging: rtl8192e: Rename variable BasicRate Date: Fri, 22 Dec 2023 17:59:39 -0800 Message-Id: <20231223015942.418263-18-tdavies@darkphysics.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231223015942.418263-1-tdavies@darkphysics.net> References: <20231223015942.418263-1-tdavies@darkphysics.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Rename variable BasicRate to basic_rate to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- drivers/staging/rtl8192e/rtllib_softmac.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index 1e025ef4bed6..3f7d2954ebd7 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -142,23 +142,23 @@ u8 MgntQuery_TxRateExcludeCCKRates(struct rtllib_device *ieee) { u16 i; u8 query_rate = 0; - u8 BasicRate; + u8 basic_rate; for (i = 0; i < ieee->current_network.rates_len; i++) { - BasicRate = ieee->current_network.rates[i] & 0x7F; - if (!rtllib_is_cck_rate(BasicRate)) { + basic_rate = ieee->current_network.rates[i] & 0x7F; + if (!rtllib_is_cck_rate(basic_rate)) { if (query_rate == 0) { - query_rate = BasicRate; + query_rate = basic_rate; } else { - if (BasicRate < query_rate) - query_rate = BasicRate; + if (basic_rate < query_rate) + query_rate = basic_rate; } } } if (query_rate == 0) { query_rate = 12; - netdev_info(ieee->dev, "No BasicRate found!!\n"); + netdev_info(ieee->dev, "No basic_rate found!!\n"); } return query_rate; } -- 2.39.2