Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2834925lqo; Mon, 20 May 2024 20:21:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdMS06JVts/Q/cXB9CeDMc0qdUnVIpRTYiy0d+Ynjdw+uoUg2qDWUAABLsKgrScXY2pYk8LQLnGTTKLLyCjlrPpgDC6+2+ePEKpSKGOA== X-Google-Smtp-Source: AGHT+IFBjd39CG/F3E5Mn3eF1LvQbjLCj3FPmmdWylOWV4N1J9oZU/GZO4acOmqNkHgw2H2YFE4n X-Received: by 2002:a05:6512:3a83:b0:51a:c8bb:fcf7 with SMTP id 2adb3069b0e04-5220fa7208dmr23654940e87.3.1716261701455; Mon, 20 May 2024 20:21:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716261701; cv=pass; d=google.com; s=arc-20160816; b=usho4DJ9zpFud7bwG7bW6Z8bhsMGcZ/WCJaK9K3g1xtc/p0yAu9RUs4WmTpY+Og9y0 xtNuXFLYHFGCrArMRUhvFZ3njBjvZhTYig7CbmRWei9KJdzfiQUvLpF6cT+6aj4f67eu iABr9ZCFFDco1wJYfIjy0mf/a22HdiX/Wl7i8JAig/ylJe/fJtXHl9KXJaCTLYGIunia DwGgy48VSwOMUX547h8PGCtRL9DguF0yJFLIcSqtW9e+YG/dGrVcPhtGsAo4w6IOJ/5P 8znmmRLJcgHAeMLiZgMYFgPZpOipbpk38qP+gpGGel7s1VAJwmDZnj4rSN5okquN6duH VfaA== 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=ZPE9OC+GQk0I6LRtpC2oK8ZC/gu1AchzTamw8jiTg6I=; fh=cfqW4ZnCgl5IQrpFFNoQmuGyBy3XYJlhYCX6D9qfPSw=; b=A1eM7nm3AG7knxLoMi6GzvLHCRmy1rfziRp38vvKXR0dimBWF6kgB0xwLRwDsh1o8O zhm4dO06sAahYHq0WiLJM/cOQy4bq+YPn6nXdrbP79+cmf3xMts6xBsTGTVDP/AAqibM BGzliw3QMbXzeZFdTHPSVyLwH3P+NjzDUBd6rT6KI3PT+K4+pG0yzD0nASHvUvNPX5iF OXMazvuyx6qzCE5k74Gmay+OTIVe8lkyt/55fdouRR8EM91MY9fS0z+qLvQZjSCDxsOd LVHTZPDKxB2rbZ/yVvAiKvk/DVPA1MaLT5D9E/OZn5yNNnjh0E9Vz2LbR7uY7irrJTWY 34rA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=MkcUX30b; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-184438-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184438-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 a640c23a62f3a-a5d17b884ecsi389862266b.198.2024.05.20.20.21.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 20:21:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184438-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=MkcUX30b; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-184438-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184438-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 08B221F21C2B for ; Tue, 21 May 2024 03:21:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB0556BFD4; Tue, 21 May 2024 03:17:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="MkcUX30b" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 2F1145822A for ; Tue, 21 May 2024 03:17:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716261454; cv=none; b=q3svhbwko8917jFBd483bivJTBQMMOvmyr2ovEO3EhMNGcpA3ae9sYuhXUvOL+2h6zBfMnEggbmbvgGOBYcZzCNAfWLpke57NW9+kTRPVIoCu/Xf0c8Ti5imcyR2RbhBlb0U8U4ToPftDPuwcf8dCrNppp9cdm3IXUv5JKXergg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716261454; c=relaxed/simple; bh=0KJ6/0UmzK8lxJK25BNUy5fsFD+en8FEeDG8l85Cv5A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DBR2UBP6F6lMAiWmL8aFpzl48grJKz/0F2ga8PNvc7GxRNA8wvg5T1OFRXFjwxOib7NmuyvhanVF9pPQbxY3xJY0kaSiIdLt31Sk3QjHbTKuVB9ZAjQkHVMqcW+ziRH1MDchJP4sZgvCWI0gkSxcqTDBKXfKUeXwhqGnPgKFOS4= 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=MkcUX30b; arc=none smtp.client-ip=209.85.214.174 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-f174.google.com with SMTP id d9443c01a7336-1f304533064so9681735ad.0 for ; Mon, 20 May 2024 20:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1716261452; x=1716866252; 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=ZPE9OC+GQk0I6LRtpC2oK8ZC/gu1AchzTamw8jiTg6I=; b=MkcUX30bVP+aPyxhzPJbsoJ2EHmPCbt39ihHP2puoLWRS5NqCijHtyFCJc3KQslwVv p+a+RVlP/5G6zZQc3qQ8YX7O/vUyJFrv2FReax3UeBkKEPLQ5e00uiPueeDyLIHaZsb/ wJklQp+Ec5c6YbIRfa09/NWwC4LHyZpw6vItlJ6p2hia1WIaefFqW+rqKWnd44A+2duW 39tILb4eqnO32+GdXz/4LtnZuTsMbCO9/OkXHsw0RIImuPiERo7s5MU/9Z20/ePyQyi1 Dxp7UWLjWZmEloYxppsl9h0CI2QpzelkZW704GA9sKCt/m/0BoqeD1uqEz3HDKw4+yZM AUpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716261452; x=1716866252; 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=ZPE9OC+GQk0I6LRtpC2oK8ZC/gu1AchzTamw8jiTg6I=; b=c5FsqqtCjsJ/pHUNQF9gLnlGjWbRG8N1I0BNZcPMkWKY1KhoYGs/ZE+GJ8fFltAWoF vjnkHLwnQnGY3/zFOjJo8fPAhooqm1Ad8Nk/Y6jbZAJUb9fJmSugeoEfVGcHWgmMDI52 igGD13a80tRy8rlbvlDlUy3YzN2R3UVUsap62i3J+n4M80VRBYCYociG0ToQ2CUk9jae 4aRbw8RfwPQtQm3JViigk6jaz2mwyGsOgIrHO+oTEpTJDftkGZFAkYLIKbu8tOfAUJWQ h6eanmWVDsrHyx0N326+tPo+FzEgewGOIpdCAUHDJx2vK+zsB6h+XWMdLkwTSbKg3YYY oErg== X-Forwarded-Encrypted: i=1; AJvYcCXiOgGYFRBbc5NiqlGxlrQSv7A1j7cT0jV4SaZ2HHyvbje1x6ZeMCEVsz8hhYvKuO4BO8KNGX4F/IWkLNHynah8ZEOP4pL2VU0fvBtN X-Gm-Message-State: AOJu0Yy1cYe9kdMh9N6RPIkFMxwBBwXwtTQGNpVCZLhbY7PR8dNW7gA5 8PyqE6XRyZRpi+gptDPLO4zdfVFcy1xhXfwOZYveNbeegNZSfhYBp6l2TaaECwJ5eG9+2wnudW8 D X-Received: by 2002:a17:902:e741:b0:1f2:f954:d69f with SMTP id d9443c01a7336-1f2f954db9amr76401125ad.18.1716261452501; Mon, 20 May 2024 20:17:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 20:17:32 -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 14/31] Staging: rtl8192e: Rename variable Decrypted Date: Mon, 20 May 2024 20:17:01 -0700 Message-Id: <20240521031718.17852-15-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 Decrypted to decrypted to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- v2: No change. drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_rx.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c index fdf8fc66939d..1901a319316b 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c @@ -1646,7 +1646,7 @@ bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats, stats->RxDrvInfoSize = pdesc->RxDrvInfoSize; stats->RxBufShift = (pdesc->Shift) & 0x03; - stats->Decrypted = !pdesc->SWDec; + stats->decrypted = !pdesc->SWDec; pDrvInfo = (struct rx_fwinfo *)(skb->data + stats->RxBufShift); diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 996662a06e3f..f69f4ca39fd5 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -481,7 +481,7 @@ struct rtllib_rx_stats { u16 bHwError:1; u16 bCRC:1; u16 bICV:1; - u16 Decrypted:1; + u16 decrypted:1; u32 time_stamp_low; u32 time_stamp_high; diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index 4c8cfa40927c..3afce436a5d8 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -1025,7 +1025,7 @@ static int rtllib_rx_decrypt(struct rtllib_device *ieee, struct sk_buff *skb, sc = le16_to_cpu(hdr->seq_ctrl); frag = WLAN_GET_SEQ_FRAG(sc); - if ((!rx_stats->Decrypted)) + if ((!rx_stats->decrypted)) ieee->need_sw_enc = 1; else ieee->need_sw_enc = 0; -- 2.30.2