From patchwork Wed May 10 15:10:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 92180 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3710717vqo; Wed, 10 May 2023 08:28:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Uf8FrAOpsSrzfCOvJCnQxBVebyTpQspX/WJfijGZhAh2KyBm/SVgS/ZqtD6jHV767Lx3K X-Received: by 2002:a05:6a20:12d3:b0:ff:d5b7:a5d7 with SMTP id v19-20020a056a2012d300b000ffd5b7a5d7mr17985945pzg.59.1683732492987; Wed, 10 May 2023 08:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683732492; cv=none; d=google.com; s=arc-20160816; b=kiEug4Bn2bAU3ujuaG2WtsSuXZKuUJ2/OIl5+EsYduM/wA+2HJDsPbKJLNchj93NfV JEDTKZj+HhYIW12ccMWFaylPI414t1Mc/kzxcsbZb7oDMNCXrJIgp0SZLoGvpCJec0YE D4h+bVt7k/jROc2ZzRSknWy3qm72AXX1rSDj8SgYsl75+A8m9uFlOBrbpd7+r57soqqf who5o0DF887N0uAeyON+YrYcb4aitOjfvRefokg8M+JKbb2nIXl845pNi60tHPjyZ31x Hg1qfnaFmi/q2sbkBS9cYFpOU/USLISYk4cc2EAxqKF+hehzGgMhYHrRFfeHKS9juucD Ee1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=BbmQvMf9KzmVdxCSRKyarW++yF6GCnmLwgE9M2RotW4=; b=sgw02sqDo/WK5mVOhjv/PjMH0kju7zEqi65ONQwC4eucizPyIUCRPT4NWKXmLviG2P bBFYIFFG39c2SVMkJi2VwwnsV/25d++w42PCIBtAjQQnUpE+4i/sVKqFoKs6DwUUAFbJ EoJi1O5BiIbS69sHqUw3V98Ft+phBd36rZvFvKCI/gnuvBRaWUI9vOQutHPd2CyxFih7 veG7gUuv2AdI+mHbQ/pM0aXkwkgcwn8s8NE0VXzZzf75KguGalgPSsC6V+t8sUjnVPiN RnYkEP1VclmcRYlwdbRByPVPsRopnlZ0MgqzzNtxCUow+m6l1QnahVeU73vot5eFyYyD IkoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZtJb+YQh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h125-20020a636c83000000b0051b5bb35d72si4331132pgc.338.2023.05.10.08.27.57; Wed, 10 May 2023 08:28:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZtJb+YQh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237533AbjEJPKO (ORCPT + 99 others); Wed, 10 May 2023 11:10:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237504AbjEJPKN (ORCPT ); Wed, 10 May 2023 11:10:13 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8760A7AAE for ; Wed, 10 May 2023 08:10:09 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6439bbc93b6so4979644b3a.1 for ; Wed, 10 May 2023 08:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683731409; x=1686323409; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=BbmQvMf9KzmVdxCSRKyarW++yF6GCnmLwgE9M2RotW4=; b=ZtJb+YQhL1NxXiVYXH/As6s0vhSNRYSvBGb+N15NM9sSTgykg2AjFG9qO3PG1SSAdX 3CzT1p1aXATma9d/PmwuFlgGVy7iPV0mFxdq0s4DTw30wK9x5u6+A4moyvlsOiikgmKe AebpEZLZg5GoW77NMWMF3/j1eyyDOkLUUU0EqMnk6swb6Fa0hyQ0dXmmyn2aywJMC7Kg zOTes6Wbgk23IVk/ItcrUYD/ki8KW08GvSbIgX6luFY4S1pMla1MDbBqgHS6hjyOjwtC ShxaC9GcJ/6967chkJuXT2NCet7fFBrtkg8OgXdS0F6KlQH5bM+1Nbl+4E+PuaK1vc+S 7C8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683731409; x=1686323409; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BbmQvMf9KzmVdxCSRKyarW++yF6GCnmLwgE9M2RotW4=; b=UirqQkQ/Mi0NLqvFo1lhlWQ059tueRdiPn11Q/xTlIl6VfeKNP0EyX+Fp0d9p0j7Z9 g8N40WxDWhRwbb/Hd1N8am8VvgcJsiplAw0afcfiYkue4gzhtIz1oKMzum8v9Q0YJuBm okHl8J+UornBTo3ET+Fj5UJRIc7APqoGIVDPB5THH9b7Chs8Su3DU0Sc4GrNrTPKuDOC pav9LXAqnblz1+Gb+bxq6QQTdZhJW+fmJ00T6a3IaEZSFkMX87M0IovFPit1mn1qvVJA c725W39rDRgjs1KHyaLzbwLmZuBlE+1lwxYCMVYmfWcxJivQvWpFBf3jaPISj23oG5h6 MbMQ== X-Gm-Message-State: AC+VfDzKQDr9t8b+NZoW3uS+75N7ZppmfgxFf6enq7+mYcS/QznXNHpq bOFkcIq4GG3O4Kwwvodt1SI= X-Received: by 2002:a05:6a21:788f:b0:101:37b2:62f3 with SMTP id bf15-20020a056a21788f00b0010137b262f3mr8536263pzc.61.1683731408908; Wed, 10 May 2023 08:10:08 -0700 (PDT) Received: from pop-os.localdomain ([103.251.210.208]) by smtp.gmail.com with ESMTPSA id x6-20020aa793a6000000b00640f588b36dsm3697217pff.8.2023.05.10.08.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 08:10:08 -0700 (PDT) Date: Wed, 10 May 2023 20:40:04 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] staging: rtl8192e: Refactor tmp_ofdm_index variable assignment Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765521482375728745?= X-GMAIL-MSGID: =?utf-8?q?1765521482375728745?= Refactor tmp_ofdm_index variable assignment to avoid multiple assignments which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index a44be3f810ab..feac50cd8fa0 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -689,8 +689,8 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) priv->thermal_meter[1] = ThermalMeterVal; if (priv->thermal_meter[0] >= (u8)tmp_reg) { - tmp_ofdm_index = tmp_cck_20m_index = 6+(priv->thermal_meter[0] - - (u8)tmp_reg); + tmp_ofdm_index = 6 + (priv->thermal_meter[0] - (u8)tmp_reg); + tmp_cck_20m_index = tmp_ofdm_index; tmp_cck_40m_index = tmp_cck_20m_index - 6; if (tmp_ofdm_index >= OFDM_TABLE_LEN) tmp_ofdm_index = OFDM_TABLE_LEN - 1;