Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1615143lql; Wed, 13 Mar 2024 03:24:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVx3FgShqsnNvbkiT6jB3B7MSU8bKof0eyBSjMAglHz+cIdqr1fXDIqHL0EIG7lLE3jX8EjaYSA8vp3XCUUjjfLTGsZbN0PCcfDu/sNRw== X-Google-Smtp-Source: AGHT+IGuTl7Z6Pd0GOIFw4+FUKg/xocKwGYwQR1Jhyh7cQARbLkcEWvglJm5QlddxfaW8yQDnHWl X-Received: by 2002:a05:620a:2407:b0:787:fd91:e674 with SMTP id d7-20020a05620a240700b00787fd91e674mr6606779qkn.7.1710325462008; Wed, 13 Mar 2024 03:24:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710325461; cv=pass; d=google.com; s=arc-20160816; b=C21uR/UEN3eaHxeuRjdoWubXagnTiEsjnG6CyMMTDloR9VCm/quXfGb1EoX6+Tzuz+ CSF0+vhOogY/nZL20t6YXNGaFm74Qx8ol7g6Z5I/xbLIVWzlDd9wLwqRI2YC3ljghipX z/P3nIAr3oQGmBtpRUckKzCzgHkDvbTp7U8C3v3jCx4tqxmCe1TvLr+ztlrsjxpPxp3x E6DpBQrPOESuN3DtmBYTVAGMkZd5jBp93w6vmJBf/Ls6Dy/yEg8mI96qQdeBIZRrDPx1 l6hwsEwerOZdRLb5IClZ6HNeIvw8yVvx0cFHguuSnl1t8fTMWytvOufESZP5GpMcGBu8 TuEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=bg+zFCejMNEntTHWqdq6Zt216uKhJFYmi4RiiUYU3I8=; fh=JuOAdh20fNfz6o3HJlO6XGaSiCBrqt4z1rCBS5MLw7Q=; b=Ag0gFO/Po9cO9njMes4NmWNOSWn10hH47cDk8OSWs4IUKp1whK+7xsOFOHjlBGvI1L 1jg1pvVqSZEZoV2Qcgdttv0KKTFDM6ER8gJcP+UQXXdQqcljV462JmkS7ArE6W6lnH9W 2/zXgZkl0ciJWTYqlYPr1zt6EZDXdvCJtYRIGdENIn6OmhueZ/O1u+HgYTfodb0W/wLK LYJfEpTXAEg/N0zO0ZJEBtYyg1/2vDg3e+bdqqNHCmwTPfdt9vnvLKYQz5uTBBVauyT3 a9mgeqVC3wgcxLLowgbGX2dbgnaDZl5ZLj8yiW9G+a2W2dD7iZUbaAsmRKSKy7cUNrjF 85SQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bnqDNsvA; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-101342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id eb12-20020a05620a480c00b007881d5bc2f8si9805939qkb.665.2024.03.13.03.24.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 03:24:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bnqDNsvA; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-101342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AA2981C21B25 for ; Wed, 13 Mar 2024 10:24:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C031839AE1; Wed, 13 Mar 2024 10:23:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bnqDNsvA" Received: from mail-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.47]) (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 DCE7039860 for ; Wed, 13 Mar 2024 10:23:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710325426; cv=none; b=OP0UystlLE6ZPXTDHF1JJABBcepnoSOuTQLr/isR0VaUClB1ZuVc1AS/BPyjMqOJ0CWhgRUcbFtknLal4VVrLLHSHOuzm5zhiKwX8YTNbfJTJgDJC5CD0LCFtn7W25brVOcDTCzowW9u7CZ0/pjKX5/Z9mYgXiwRLvjAKmYKEP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710325426; c=relaxed/simple; bh=7HxkYOHdvLa3vDWYcxeLYbaF/zPaQQMSyz4PwtWYdlI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=An00uQRTW32EdrNr5y04ZLNzc1ShgQRgL+w+ePHiK6queXDWtk2wrEfPkg7vJ9m/n5dsWa7bzQ1GA2HogPK1rqr8jdSmUWjVwAGmgiDRePK+fnOHM4FjWAtdbqCsm4NXx8zBjam6yXjSusUUEgs/fxV9Z5gGf6dnfdiarrtaMkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bnqDNsvA; arc=none smtp.client-ip=209.85.161.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-5a1fa3cf5eeso430797eaf.3 for ; Wed, 13 Mar 2024 03:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710325423; x=1710930223; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=bg+zFCejMNEntTHWqdq6Zt216uKhJFYmi4RiiUYU3I8=; b=bnqDNsvAotdDwqneLBCYZfAABKEVJowNUo6tvZr7WxZIPkc2Sd5ZiibqgEL9Q5mFCm F0f4tjlWynSBy2W1btu5/8Q0O1C+ATTJOdzkbqCnUtU5lXIRqdzznUKQ1+Ux1Tu48q70 12s3iXrhnsd22D1mYbzC6a5sdRmERCE52JBiAIGyADuQQ5EqSXK3aiW1RCcuT5HLHF4X +vqbnP3sSXhrFpuHj8p4yJgXVdJkDgP7dO11q3NlAlC4jxB+WUHyadLpYOUu49FPtqk0 mBz5HK8ORF/frjmr6D8GLr54fjLTLv7hKuyMZTqoCcH9YM24uBe/gzlofY83Wi90FpJP 3lEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710325423; x=1710930223; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bg+zFCejMNEntTHWqdq6Zt216uKhJFYmi4RiiUYU3I8=; b=IMG7CvIgY1Q+P+yx5NLqx6+A7kd/vLFNCm+MuVRmw5j6F5CpUrOrUa2r/K3V7uypVK mE3gPYr850ODRTtkoHGoLX96oXiwO/2ve1JMtCppjTXxVuAA2wxugCjsSphULrtiYh0p B4A/ny9nVSTTjsyj9b6qC0U5J6O7ZTZrHQjDuMJprQ5OfhVlcgPPaFBdEYWFiLy+ALuD H0UDs57l7DuMI29hWc+4IRRa5XaWqjiKdgSsCCK8rjaI1gEOc/IaDgBqWYOyUvpEN1Iq fktd/8WNPjuZx/iFOIYt6toHvtTNDIe5O3mEnL/+pEINxLxbbaukKsu9qhb1/M2dbWfs SP1Q== X-Forwarded-Encrypted: i=1; AJvYcCVOxH84idfofW/bBq2NytvVIzmyhwx2Jh/VkEBXmSaJar9eH4gqChdJoC/EfKwWXCXFh0IcXUOjCEDjsdPKl5oMRFcOJz1ujOaRm8zJ X-Gm-Message-State: AOJu0YynrOxZf4OBgWsnvr/vm80Tht7wbCtYEmYsJQTpX5YRJvPxzfht L8UhnNgWd1gVDlfVEYZLvApLrNqpI1IULi/joo5PEXz40BjGxb61 X-Received: by 2002:a05:6870:1643:b0:220:8cc7:253e with SMTP id c3-20020a056870164300b002208cc7253emr6651488oae.22.1710325422770; Wed, 13 Mar 2024 03:23:42 -0700 (PDT) Received: from ayush-HP-Pavilion-Gaming-Laptop-15-ec0xxx ([103.6.158.67]) by smtp.gmail.com with ESMTPSA id d8-20020a056a0010c800b006e685c36d41sm6178544pfu.55.2024.03.13.03.23.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 03:23:42 -0700 (PDT) Date: Wed, 13 Mar 2024 15:53:38 +0530 From: Ayush Tiwari To: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Cc: outreachy@lists.linux.dev Subject: [PATCH v6] staging: rtl8712: rename tmpVal to avg_val Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Rename tmpVal to avg_val in process_link_qual() to reflect the intended use of the variable and conform to the kernel coding style. Signed-off-by: Ayush Tiwari --- Changes in v6: changed variable name tmpVal to avg_val against a clean staging tree Changes in v5: changed variable name pct_val back to avg_val, as agreed by Julia and Dan Changes in v4: changed variable name avg_val to pct_val, as suggested by Dan Changes in v3: changed variable name tmpVal to avg_val Changes in v2: added a period in message drivers/staging/rtl8712/rtl8712_recv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_recv.c index a3c4713c59b3..1fabc5137a4c 100644 --- a/drivers/staging/rtl8712/rtl8712_recv.c +++ b/drivers/staging/rtl8712/rtl8712_recv.c @@ -861,7 +861,7 @@ static void query_rx_phy_status(struct _adapter *padapter, static void process_link_qual(struct _adapter *padapter, union recv_frame *prframe) { - u32 last_evm = 0, tmpVal; + u32 last_evm = 0, avg_val; struct rx_pkt_attrib *pattrib; struct smooth_rssi_data *sqd = &padapter->recvpriv.signal_qual_data; @@ -883,8 +883,8 @@ static void process_link_qual(struct _adapter *padapter, sqd->index = 0; /* <1> Showed on UI for user, in percentage. */ - tmpVal = sqd->total_val / sqd->total_num; - padapter->recvpriv.signal = (u8)tmpVal; + avg_val = sqd->total_val / sqd->total_num; + padapter->recvpriv.signal = (u8)avg_val; } } -- 2.40.1