Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp53707pxt; Thu, 5 Aug 2021 17:44:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYpEQseqdN00KwWgjhcL9XbzygWSAkPfTIkNBDk0YFwnHTfUao9dv9VE61jhRQA20OXTAj X-Received: by 2002:a17:906:58c7:: with SMTP id e7mr7263391ejs.197.1628210678853; Thu, 05 Aug 2021 17:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628210678; cv=none; d=google.com; s=arc-20160816; b=00rPGmO6vhhPQyznYTwcwTy2t9a8orFcv/gwZyTF5EOZx01on1hEIrx1AkZuWlpTV/ lII5RX+o+qvAAvH6NZvg63sXhjuvl2nXufoNKyXqCrHlkfDIv5fYf9SLwV3z9mRgtTMd EpIm/GY9FvI0fxuUGECWz4oBCPJBolo82MxfsE8aSNu+8wKdNnAnZW3n1IEq6bNZEpe0 A75XLPnB3FRg/dbXYn6UP/8qt0ttFooHjXF47QdHMcnuia1zqkSBxeN/Kk/7YFtZ7TvP UpMmS0HJmZPsdykO3ZK7F40/37TYHlku0GsQx4ryapyp5k5dHNSr2+YdNnwk+CsVQHE4 XK+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cZOPBArOP+AoA5ituwCYOVA6crb6lYuyH4nFp2RnHbE=; b=YSj2BMmMAdZUgM4c5aVCfNx6iX/LP05idokPWrBx+/CNH1zyOG8D9HT4BUuVubQTlT DcjrAnw65zoHacGZjLYUFEEqtOtLCtxzN02liLiH5pw+F0hD2Tk3R5pjsQYEuVGthksl sbD8R0WCI/LNnh9/LzmBIskWuQYmTIQS0ABWGV/vtA/wtv4J5VgpnUTNEA3hVqkRV36/ n+xOVPYjYJKzlI8LxgCHnVjy1RVY33aa2J+RwrsYZGuuNLXSAimW4Qe3+HBwETl5y2ZY 3BDZlWaZ4a2mbH2V64avh0eBLP0KWPXAgRnJ1XPFNFWDsAqmpjM5ogmT+jBJoRhkrNAq 4/jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ao+LtVb+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga37si8302069ejc.742.2021.08.05.17.44.15; Thu, 05 Aug 2021 17:44:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ao+LtVb+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242012AbhHES65 (ORCPT + 99 others); Thu, 5 Aug 2021 14:58:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:44966 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241727AbhHES65 (ORCPT ); Thu, 5 Aug 2021 14:58:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 750F460F42; Thu, 5 Aug 2021 18:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628189923; bh=gOZlffGUr2e48j1pwi3Riunv2adJDJXK/fbCwjsuipw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ao+LtVb+/IULGN8TUo13q3iLIOHKMAE//59ktRtaCajNQWxM2uhVFiYi8M3+8FqgP Zar2gQhxICw3Tcr15tpTiB2xCyvCS5o4hT9yUCTXCTIMbFOnKYSb022f/F+gu0ALuK M7kHQukc6uf5gn0qUb/dfvs5FGNuZzcwbFb2zjraqgraZi6CE8NDa6QNoIw+kzNxsE 6sYXb13OM3Nshrd2snNCAB0UV4KYNetmfyAfIyX8OSwK3OtNczXhG+CDDzvFHCBcPm wdFP3gLliauHm0wvcrVRrxUVa9cOBTSyIr4Y+vIR2ItC5J/Bf/LgQoII6zQzk30Vau 6y2XSY8ghhYjA== From: Nathan Chancellor To: Greg Kroah-Hartman , Phillip Potter , Larry Finger Cc: Nick Desaulniers , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH v2 2/3] staging: r8188eu: Remove self assignment in get_rx_power_val_by_reg() Date: Thu, 5 Aug 2021 11:58:06 -0700 Message-Id: <20210805185807.3296077-3-nathan@kernel.org> X-Mailer: git-send-email 2.33.0.rc0 In-Reply-To: <20210805185807.3296077-1-nathan@kernel.org> References: <20210803223609.1627280-1-nathan@kernel.org> <20210805185807.3296077-1-nathan@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clang warns: drivers/staging/r8188eu/hal/rtl8188e_rf6052.c:344:13: warning: explicitly assigning value of variable of type 'u32' (aka 'unsigned int') to itself [-Wself-assign] writeVal = writeVal; ~~~~~~~~ ^ ~~~~~~~~ 1 warning generated. Remove this branch as it is useless. Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers --- drivers/staging/r8188eu/hal/rtl8188e_rf6052.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/r8188eu/hal/rtl8188e_rf6052.c b/drivers/staging/r8188eu/hal/rtl8188e_rf6052.c index 335b120ce603..77889dc05858 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_rf6052.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_rf6052.c @@ -340,8 +340,6 @@ static void get_rx_power_val_by_reg(struct adapter *Adapter, u8 Channel, /* This mechanism is only applied when Driver-Highpower-Mechanism is OFF. */ if (pdmpriv->DynamicTxHighPowerLvl == TxHighPwrLevel_BT1) writeVal = writeVal - 0x06060606; - else if (pdmpriv->DynamicTxHighPowerLvl == TxHighPwrLevel_BT2) - writeVal = writeVal; *(pOutWriteVal+rf) = writeVal; } } -- 2.33.0.rc0