Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3093232lqo; Tue, 14 May 2024 22:03:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1OECuCG2U8ttwsLxW5H8Rs+O1cvwgJVHHSOjy7HBRbrQhBLWCh8mmLPV/7yNGFgl0HxZ4j23BX1x91ergDfgZ4IQKgl7OvYMtPg/OnQ== X-Google-Smtp-Source: AGHT+IGRcjY57vbVhpstTOkAA9Yki8k+foZlhOnHrTLWP8A7Q/Ie1OuX+NpeMlXNgijPqtPWPN9k X-Received: by 2002:a17:906:553:b0:a59:f380:1821 with SMTP id a640c23a62f3a-a5a2d679867mr939830666b.69.1715749388257; Tue, 14 May 2024 22:03:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715749388; cv=pass; d=google.com; s=arc-20160816; b=UVnIuglGNn3uEE30xTFYMm+kFNQyPF15Ld8Hd5ufWgG5TalN66UHaCOVlJthEyRBD7 iUi0cDluoZqDLAXvs0o6Lb5TabPmGeQFO37VtXFyIbTLUe/orcC/ZGva/vM59b6lOnZ4 /aaQi31YMGT0ZCwg1gAVo08vGqvshcP0YnAwcHz/PiLjIg6hPN8bfJnzYidCcJ1MA4md AMM7knyyIPir7ftCM7MBhirdIOQqwbxQhBJiSKeh4n26psT4PlPNCqZjWyPRWp4GUae8 63t45ASHmW4oP1i6DVmt1aP0bOeL/AXEiIG9t3f/SzYuKMymE/yuVicHDHhe2ePNwgSA ZSVQ== 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=SO1LlzefJj0jEx0cVt/CtzEv69TIbxurb5KVwdnmKgs=; fh=pl/dLbKLVEDBjqnUp7Xd7zHUpFDTckcP+vJnLs3+VA4=; b=JvEFlWnSORAydUcBIeq4bt1uyHGG/6+ysUcBjvyXYF1ciGEydJU1x6ilBb02UwxNwN Lf0ejlrk5rC1sOJjvJHoQpoIoixVaShpcSTfoDtKgNePgkG+b5G5cVOrmgcISncZqm9u q2ccVPANrMcWSx7uhsR6Xy3BzCvRfm1YMkJ6AfP6dWC7dhwhkkBg1VIb0EQ4VbwKcvwI hVHYdbbZkPfQuya7sy0AgmbVgbJwlOhxXgj94CzmgxEb2IKJxZjbccd9o7DJ9tWu17nF vqNAtOCC3mCWsviCyoss4iN55/NTV02qi8Zm3gUxNZuKIZhBtCnp7r+JcMju2tZCyENO I3pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=VwVgQo4m; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-179422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179422-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b20f01si696560366b.408.2024.05.14.22.03.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 22:03:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=VwVgQo4m; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-179422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179422-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 7E2901F244AD for ; Wed, 15 May 2024 04:55:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA5185C8EF; Wed, 15 May 2024 04:52:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="VwVgQo4m" Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) (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 8813254903 for ; Wed, 15 May 2024 04:52:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715748768; cv=none; b=UFL1wzfhStovhIrO/mcohw4J+9GuEJ1RZGlTWfqBqoXlDDpaf+ZXbutJ2p7pxrJnb+hMZYyJL9YLnQWnVvvqUpkVAmUHDErNpJm0b5RcGdjy9nPCeNANkEh1iKVufhoGjTX2FjK+STHS4CGhOo5EAyDtA7YJhg/OXuk2w+VhQ40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715748768; c=relaxed/simple; bh=kmfTsVVKKi0K3wI96U4qSEQ5mx4UjunkStIgtro1AxU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Jspr7icnxe/7n8rhkI0qi150qS6NfjvljVCVsPP1e7uRnmwOK4ibdoLiFXY0mTJOXdxBxxBVEv/nPiGYjhii+zxQy+BdBT4J0LgGynOYqjEYVzEt07H5Cv8+uHGQ+1GRScJ/MeZUA+8cjaoVrMyyNRaDN8CRXaPfxmDcSM4Lkrw= 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=VwVgQo4m; arc=none smtp.client-ip=209.85.167.175 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-oi1-f175.google.com with SMTP id 5614622812f47-3c96fef64b3so3869417b6e.3 for ; Tue, 14 May 2024 21:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1715748766; x=1716353566; 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=SO1LlzefJj0jEx0cVt/CtzEv69TIbxurb5KVwdnmKgs=; b=VwVgQo4mliXYvjVayeG1NvXeLOBqoIbObwoQDnAHdpMf3NX9MJvke4AQlulsAA1eJ6 71VVvKaVnwOG3v73Yp7gbgraw0mYQB+elvem6WfBWNeO9q+p68nkr8Vb707BE1HaBvrZ OsdMmYx74JoU0SoDptA7QBIbsvUWKHZEclLnv/B4LY4HX4GtdlBxnPOUv24zy2JE6yKx atp2Uxl5B5Lq2qiOdGy4O1MYojqLJNjDWEsap44ffrEiShspNMMnSJ8u/JQjZ5KqxKbk +ttvsiccmrYY32txeUt26SpcBF0De2/2gslNPfIyeG5BLc6gEjagHGfmLxZsdpYq5XFg c5xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715748766; x=1716353566; 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=SO1LlzefJj0jEx0cVt/CtzEv69TIbxurb5KVwdnmKgs=; b=RvY6hc4fysaieZ09X4660lKhvvsou3EzBRdNuG+cpHV1jOZmm1VFTp7nYbFqMAL+vN GHVoPs3uo+BzahmV22gPseMYgEYzXN2ugrNH6ncTdYQCoAvz1SC5fAsA/T/qTHns6rtr 53okhhQWXqib/a/xyl9pRYyuSx+PmRlGTbvMVIdA0xqqOZQlqdhbA3aOmwhxPffchoMK IsR0svr+hlR1plP8aYnxHKKany3l1g3g1z5KMVCuzIK6ZT9wvQtcRpeudF23veyjEPCI l2L/1FjDZDfEdarMs1VrXN9SxBkITbEA8wgwGrSuIyvcOya6N2u4E5WNoO5vTrRB4Bx8 cogA== X-Forwarded-Encrypted: i=1; AJvYcCWuUTNamv94APAh2vyR+oNRsj33Z5UMUDz3okNRtNZ+nnuLxM06PGXGsRQLSt1/Ilyn41Zn6Rp4T2AS5PFccpzY3k9xow6TxTaTEI4J X-Gm-Message-State: AOJu0YxMv8Kh8Jk9rOrdSnaFtvNXwXHBaVFoZpcF8JXP4Q8kBYzgVaN3 RQIQD+vq+2+LJbw9SRlxL6QHWeU1o9E1UzfQteYH8IXRVXS601Rvvm8beOeHvTc= X-Received: by 2002:aca:111a:0:b0:3c9:950c:2227 with SMTP id 5614622812f47-3c9970cc742mr16098502b6e.45.1715748766601; Tue, 14 May 2024 21:52:46 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 21:52:46 -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 17/31] Staging: rtl8192e: Rename variable nPadding_Length Date: Tue, 14 May 2024 21:52:14 -0700 Message-Id: <20240515045228.35928-18-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 nPadding_Length to npadding_length to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- drivers/staging/rtl8192e/rtllib_rx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index fb679229f173..0db75fa7da1e 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -732,7 +732,7 @@ static u8 parse_subframe(struct rtllib_device *ieee, struct sk_buff *skb, u16 ChkLength; bool is_aggregate_frame = false; u16 nSubframe_Length; - u8 nPadding_Length = 0; + u8 npadding_length = 0; u16 SeqNum = 0; struct sk_buff *sub_skb; /* just for debug purpose */ @@ -833,15 +833,15 @@ static u8 parse_subframe(struct rtllib_device *ieee, struct sk_buff *skb, skb_pull(skb, nSubframe_Length); if (skb->len != 0) { - nPadding_Length = 4 - ((nSubframe_Length + + npadding_length = 4 - ((nSubframe_Length + ETHERNET_HEADER_SIZE) % 4); - if (nPadding_Length == 4) - nPadding_Length = 0; + if (npadding_length == 4) + npadding_length = 0; - if (skb->len < nPadding_Length) + if (skb->len < npadding_length) return 0; - skb_pull(skb, nPadding_Length); + skb_pull(skb, npadding_length); } } -- 2.30.2