Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2836117lqo; Mon, 20 May 2024 20:26:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+loKpNJPN++mw2aFTLpZ7wOHiOxjkXJLfcPXsPEI1OE5vDdOeeDoVMU9v/2Trs7TiecqGAfNiFXmmObDYATtvlGlQ4YYnuMgvLuRBQQ== X-Google-Smtp-Source: AGHT+IGhmZwRONOZ6Goeu9U4euRL3fczgCaxu0W6yhRQUFE7CTn1+8Lek7OILd8XISq2ZWcHH3nD X-Received: by 2002:a17:902:c403:b0:1eb:309b:6712 with SMTP id d9443c01a7336-1f2ed3678ebmr83835225ad.29.1716261996046; Mon, 20 May 2024 20:26:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716261996; cv=pass; d=google.com; s=arc-20160816; b=0xM1hE8VYRq7s+2EV3vtZJqpoCMGW6rP6JKd7Ro+QusU4GFJjGR7WF/DtJnGw1A0lc VP8gNqZGjy+F/E0AYVZCLrBpSgAKGG9+4QBcdilLfMUrZ84BgpLmwlDlG7pomQgsnEYZ HdblOBjRgceDMh4FSC72Yyu1dJib5iCEej2qTgKHgHOGLTKWpzrdvZl62Ip2MVmkRGPc oWX9J4HAh5zsx5Tzj6pE0a+9vTCYZ8vyVqt54H0Q1JuFlknjWAIcnWBkZTZVOxLodb8W E7lP+D+Sv8HTRY4Djbxsnqof9hZccvSws+Kj7X/eWsc2147iXm3dHuhoHR8lCwjFr+XJ HYuQ== 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=4fdeEpEPtpWbE5Mh9fqJmFvRworqsEQTxGybJaCMPRk=; fh=S30yjHOx9hklAZQvOynESEPTwIPAq9QBBSjKxyTpZbY=; b=BgcNpT6xAYYr22IZvI/VSorBXYHYSpQBjj6eWfFWKFer9lmYIXdQ0Au6ap0f5JEr7v 40SctHSHt+yH7GxvuU8MZkY9ufhSUjICDfe3MdplZ/skyE1EVzG8GYh12HbYDff+g7Ls J+fS5Sv7ayNUnVC2lwI1i0f1wereDz+dM8ozmNobdMT84ZXD+FWx4gH7oKrz9iDlg6wX 0SGYT9RI6HerF0FhBjtVILUlksMllsRb/oKnZ91fKGMKlI3zZyph3PpzK4vvDOTjj/ZK EdUKhepcRn6GcH5Vjf+FLa+0RjjlXx2iA1khmU5Sq6zoXJV6hl3mgmJ0yEkRfqSBvCWW 0djA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=GlPa6h0m; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-184444-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184444-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-65df090d4besi7606409a12.875.2024.05.20.20.26.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 20:26:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184444-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=GlPa6h0m; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-184444-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184444-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C3107B210B6 for ; Tue, 21 May 2024 03:23:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C020A7605E; Tue, 21 May 2024 03:17:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="GlPa6h0m" Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.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 6F6AF73539 for ; Tue, 21 May 2024 03:17:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716261459; cv=none; b=KGE4pLcqWZ00LmTjsSaEmhVENOHssAr6nx8TNWGjzg5VAKdJq55hXDOawCYuQ6ejDKBw0pUjvtHWBrKwU5+w5LX+r1tA1/Ngh87B8QP7n4KzlMM9wWNuHV/jxRVZZ0i8vuyu6x2XckTUCv0BDUaUIqAQenilG+sO7eVxbjWsHWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716261459; c=relaxed/simple; bh=O1x9lXALRfV3PEXYjxpd9ysMagtz9IVgfLsMeVEQ/yI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Jrg11zzeHpJYIw98wHJBcJbaBAdM1RHuFYPfs2+0Ck3uB0rNlWFRM9IFJzpGfwNC01UltGdxqMVRi2qE+FB8b3ArP9WLaTQIgj3kbc3cZwUCg8/a93rN92w03hYshdlInV//fLZejryh2sJA6EBClFaMbEXvPakW0A956wRU9xc= 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=GlPa6h0m; arc=none smtp.client-ip=209.85.214.181 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-pl1-f181.google.com with SMTP id d9443c01a7336-1ee38966529so24149375ad.1 for ; Mon, 20 May 2024 20:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1716261458; x=1716866258; 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=4fdeEpEPtpWbE5Mh9fqJmFvRworqsEQTxGybJaCMPRk=; b=GlPa6h0mP+AW3aywezI+gwc4M4G/gp1RRjYk6gHzreyZjY4QB8yw66QQV4Bjm9y6dQ So2OJ+nPOZD4F/1J3sDddLO+orVA50cWoXz9t1L2Ivh+MNbTaFSzoMs+sQiR1JB///E4 yXR0oai9NM+mtlmOQ+Qz1B0nHsCXG03srXhok7jV6N0+6OncRG+GKj79A5xpJiN7ofhd EuzLr85y6dbcP+QqZYRTx8e+Ozhlck8gXkc7zBBZaNGbD8NRf6hKO6AmRYHgFob7V7ZF WC0BqyfWqTrjBDUVL+7Y8WVJB5Dlr3dw1DFXvgRYCLb1odQPX+wPRr7VNfOD845LxIr1 LgdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716261458; x=1716866258; 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=4fdeEpEPtpWbE5Mh9fqJmFvRworqsEQTxGybJaCMPRk=; b=MlqvWRHDJnvwp/anliYX290RM4VSPPjeBjCq6QjQGbOxFF94oRvLW17bnUDHWeXp9w 2Iopj5zf6ZXnmMf5G+v4kUwguK2qA7q/vT4j4h69h4/diDZ0nJ6rA1GxFO08wTpUaqmj u0c0z2g0oVyD3iuskPP9dCw3qDkan3hjgUpAcwM/YP+3kMKB3eowxWRiHXzU9MhwjjpV gRNQXw1UHSFHr6VCXofw1uAb007ekW2TCsuUmYvEwmbydaPZGxhI9a3g8w3xsP2Ei9G2 yGJuvfUpZVHYpAB7WxfFK5VSCDXCR1n39IB6zOvQslSyNFJX6KkACaHlazzA1RFwcI10 +tbg== X-Forwarded-Encrypted: i=1; AJvYcCWlbwup1I7bq1NwSLPjltk7JCfx3IweaUak1LVZi7Kn/z38cFonTRuBVRP7caJ7QqyKHPl4Stw8+GYAbofhEGYoUahxM1xwE0Z227OZ X-Gm-Message-State: AOJu0Ywr3o1ws6kUrSwZgaHo1zi+0vAGvVNeiUCeZVOvwT9X9uFVL6W2 ghzfZwUh6IRmfXc++R+Ivi4Bb5vj7G7xcClzAH1OpgmgJEzCFEmU5Df2jbF5PNTeUhHR2GpeU0Z T X-Received: by 2002:a17:903:2448:b0:1f2:feb4:84f3 with SMTP id d9443c01a7336-1f2feb48734mr60320535ad.1.1716261457837; Mon, 20 May 2024 20:17:37 -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 d9443c01a7336-1ef0bf31a93sm214885415ad.134.2024.05.20.20.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 20:17:37 -0700 (PDT) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com Cc: dan.carpenter@linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH v2 21/31] Staging: rtl8192e: Rename variable WinSize Date: Mon, 20 May 2024 20:17:08 -0700 Message-Id: <20240521031718.17852-22-tdavies@darkphysics.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240521031718.17852-1-tdavies@darkphysics.net> References: <20240521031718.17852-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 WinSize to win_size to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- v2: No change. drivers/staging/rtl8192e/rtllib_rx.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index ab2aa1a86c51..50687f3dce47 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -526,19 +526,19 @@ static void rx_reorder_indicate_packet(struct rtllib_device *ieee, { struct rt_hi_throughput *ht_info = ieee->ht_info; struct rx_reorder_entry *pReorderEntry = NULL; - u8 WinSize = ht_info->rx_reorder_win_size; + u8 win_size = ht_info->rx_reorder_win_size; u16 win_end = 0; u8 index = 0; bool bMatchWinStart = false, bPktInBuf = false; unsigned long flags; netdev_dbg(ieee->dev, - "%s(): Seq is %d, ts->rx_indicate_seq is %d, WinSize is %d\n", - __func__, SeqNum, ts->rx_indicate_seq, WinSize); + "%s(): Seq is %d, ts->rx_indicate_seq is %d, win_size is %d\n", + __func__, SeqNum, ts->rx_indicate_seq, win_size); spin_lock_irqsave(&(ieee->reorder_spinlock), flags); - win_end = (ts->rx_indicate_seq + WinSize - 1) % 4096; + win_end = (ts->rx_indicate_seq + win_size - 1) % 4096; /* Rx Reorder initialize condition.*/ if (ts->rx_indicate_seq == 0xffff) ts->rx_indicate_seq = SeqNum; @@ -569,11 +569,11 @@ static void rx_reorder_indicate_packet(struct rtllib_device *ieee, ts->rx_indicate_seq = (ts->rx_indicate_seq + 1) % 4096; bMatchWinStart = true; } else if (SN_LESS(win_end, SeqNum)) { - if (SeqNum >= (WinSize - 1)) - ts->rx_indicate_seq = SeqNum + 1 - WinSize; + if (SeqNum >= (win_size - 1)) + ts->rx_indicate_seq = SeqNum + 1 - win_size; else ts->rx_indicate_seq = 4095 - - (WinSize - (SeqNum + 1)) + 1; + (win_size - (SeqNum + 1)) + 1; netdev_dbg(ieee->dev, "Window Shift! IndicateSeq: %d, NewSeq: %d\n", ts->rx_indicate_seq, SeqNum); -- 2.30.2