Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3103044lqo; Tue, 14 May 2024 22:32:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUINhdeoZhwl9XpmxqzBCfkONeESET7gRAcspvOIqaPZpry9+moAvKtIvQNAuMF+ZaHvxUxe6WyWsGpi7JpHP2/ZeUZKHIe+bkbQ8eSZw== X-Google-Smtp-Source: AGHT+IFHlMvpHI02SjueqpXLSF0UwdQ63V7k5rUlvKiKE4sBuo+E+2NTeZrYPZR1M0tGailDjwF3 X-Received: by 2002:a05:6402:14d5:b0:574:ed8b:eb1e with SMTP id 4fb4d7f45d1cf-574ed8bec46mr1492688a12.10.1715751144971; Tue, 14 May 2024 22:32:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715751144; cv=pass; d=google.com; s=arc-20160816; b=LI8RvQIdFmJDSHIeqo2vYyT3dMbkRk2Yo7T0kbRjQNJzQdXtf3C/XJi1jxopAASU5v MAxeFwvpRQkCIipBjypPhjlWj0iB8tvfL6NDpJAIoPdpNFHmGUlM7o05bvBUNvy6plSd TanhlFRVfNkxlb5glIDI+GirICXR1MO+SpPjjJgl5xwj/otSXKKVtKKq3gdn4yRdwf+1 ltHXbARLOCqTeqg3CeF4bRGqyMGEqhikxuFMLRNoe88EYLo9GM61vwP6GOGCcUPB3m9X 7Ojtsm6t+UXK7CBnxDjiRvLC4gicJf4U0QIOsXaYjozzkHS7+qm/shFYcq6JwhEpFwxV J7ng== ARC-Message-Signature: i=2; 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=r4y6QZitAeyvzhHgT1YfCyDaEWg7ZCeKCXSVd34YhUs=; fh=IkUthCItXMjE7b35JRVpilnnmbT66Ec1x/dc9G5n1T4=; b=Abl0qkfZNL8HXgZ5F4Ii+Upl8PfaDa3wkm1KjvippnVYuMh/WhbvNQ+B7wlQNRCYkt CPxO98UGeSjY9Rf0SE1GwFQosgkqAzLsP2UIavHws+7C//fmT4agy1uusiMb0yCPNsOk C7Ci6sx/y0nUkdXIxz8FhaRsiy1dp8kLD31f4u6jBJ+LG9utz0usSOM7Bb+RdG/3lw1u yS8zot3bfD2E18ZWi9fVa4iWbSHgnieg1bhnH9Gx9k6NmJRJ/BbayxIihLzwLXFK5Env 9XF7idJUFPqUNKHuyOQc+3jleq4C8pujWR2mqkvocVDAp7YgTJQCEWNFyvE2Uh3m6lty qQow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b="OYa/f22f"; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-179424-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179424-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574ebfce253si973303a12.659.2024.05.14.22.32.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 22:32:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179424-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b="OYa/f22f"; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-179424-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179424-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 88D041F24A9B for ; Wed, 15 May 2024 04:56:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38E6860279; Wed, 15 May 2024 04:52:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="OYa/f22f" Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) (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 D099C5A0FD for ; Wed, 15 May 2024 04:52:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715748770; cv=none; b=ADV1w9Y41JU1lxwOwY90nSOMOowgSQIshaprjnG3rUcVTpecvmVq12NQ3teyEUW0U5fXpgQMpWKu3CjimdhK1iVTxK/kmXP10J07YT8waWvPAXJH4b0dEe8HD+4+9VpXKK01XUoWME6D/CIHZb60ReWL228Rz4z7jjDFyN+CSw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715748770; c=relaxed/simple; bh=TeaeQ2JMBXMEzm1Q8X46tzEmnkViYGm+ie4q5eQCeJk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Vjf5gpPpz3IpUiKXNXDP1mM5S6uRtg0Kq74agSk7ogXCxbPzOGF8MFTpyATe2sNAywx1CrV6oM5hqhPBaNZamkPq7ksa8RKJ7zUbLfymqzGHlwnWS7OXWiAvTRc7N4qIa7b8ytKPJZL4stTotqVCurgXyHZfiGuf1xiM5AhBPAs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=darkphysics.net; spf=pass smtp.mailfrom=darkphysics.net; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b=OYa/f22f; arc=none smtp.client-ip=209.85.160.44 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-oa1-f44.google.com with SMTP id 586e51a60fabf-23d477a1a4fso4050636fac.3 for ; Tue, 14 May 2024 21:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1715748768; x=1716353568; 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=r4y6QZitAeyvzhHgT1YfCyDaEWg7ZCeKCXSVd34YhUs=; b=OYa/f22f1/frA2ztkomKx24l9r0UTdJd8ocTVoIYU34M784LuX0J0AkAz+NLc2lv5U eQWEGFrTT05azBU8Om3H/MqmOXAu6cSZxAxpTzq6jQTeXvkHbfGdJWGYkIqYxirPizMg QJGnCOGQYqLyPKHETse9hrFerBaJm+aSPaAqC4NZ0l2foJcMqCiERLWf1Fuw7Z0ezFm5 RnSei9ABrbwaEJBSulTFllzMdort8+kgqtzxixd/bEhFrOeLv1IUZZtNDHCYsfKyqvT4 RyagEsQ8v0LYdOjpzKr4eKlMW6oygR0/0sWoAfzD3qtpCEDXiVsGpuqUfs5jTSJ9dV5Y 6blw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715748768; x=1716353568; 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=r4y6QZitAeyvzhHgT1YfCyDaEWg7ZCeKCXSVd34YhUs=; b=HIMKAjCWtATqEXY6Du4j9mWLRUZUx4pKustSQQfdaCV6u0N6QL7pfV5a3quFZYrfHA THn02fvpFmHQiLdcuIgVfyQ1bnNONSNdfPKsWTXKuuGHbS+JOU4PPuVNHd8uDPwkMHLR XYyiN5S4Uz4DO4KxTJVNrjpXAOioBRJuZ6FUKHJmEqaAclOE7toHyETAk6mOf7CcPL9g PbShHTyMUrRqJzgXAHxbxsoavVWqjodyIRpdZ9fE7wgS2kziZvJxw7fCwml0y7pQCFMu ToEJEtCMStCAbZHs9u9LaIt/DXuGHWZQgTuvJ9JgSGov2bGHiJxWmOQp/bpVZ1sUlS/X cN1A== X-Forwarded-Encrypted: i=1; AJvYcCXW33txI05eshk4gMTzlPeeBQ/3H6/GXetteC6xKlXWo3yIKBmmsbt8Pdxc/dAsUVzRyjV/OTSmeipEiexkuKzECQJsjutlG6O8OEdP X-Gm-Message-State: AOJu0YwDPg5MOtZyN5LSRDgnyA5VNx4E9to7FIufY00LWQmopuWc3Mx1 Pw+vhnsXgl8C/3lLmDu757qPnHHgqsPUY9bUtRCmSIyyZc5sE0rIhOPIgiVc3KA= X-Received: by 2002:a05:6870:8dc9:b0:23b:ed9:1f53 with SMTP id 586e51a60fabf-24172fd265fmr20986165fac.53.1715748767884; Tue, 14 May 2024 21:52:47 -0700 (PDT) Received: from lunchbox.darkphysics (c-76-146-178-2.hsd1.wa.comcast.net. [76.146.178.2]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4d2a827fdsm10135035b3a.60.2024.05.14.21.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 21:52:47 -0700 (PDT) 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 19/31] Staging: rtl8192e: Rename variable ChkLength Date: Tue, 14 May 2024 21:52:16 -0700 Message-Id: <20240515045228.35928-20-tdavies@darkphysics.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240515045228.35928-1-tdavies@darkphysics.net> References: <20240515045228.35928-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 ChkLength to chk_length to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- drivers/staging/rtl8192e/rtllib_rx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index 3223619f8cd9..ca1c748ac40c 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -729,7 +729,7 @@ static u8 parse_subframe(struct rtllib_device *ieee, struct sk_buff *skb, u16 fc = le16_to_cpu(hdr->frame_control); u16 llc_offset = sizeof(struct ieee80211_hdr_3addr); - u16 ChkLength; + u16 chk_length; bool is_aggregate_frame = false; u16 nSubframe_Length; u8 npadding_length = 0; @@ -746,9 +746,9 @@ static u8 parse_subframe(struct rtllib_device *ieee, struct sk_buff *skb, if (rx_stats->contain_htc) llc_offset += sHTCLng; - ChkLength = llc_offset; + chk_length = llc_offset; - if (skb->len <= ChkLength) + if (skb->len <= chk_length) return 0; skb_pull(skb, llc_offset); -- 2.30.2