Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2796766pxy; Tue, 3 Aug 2021 15:47:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLCLDFc6fi68ztIW8UTEHz2aFt+92WvDlZnnANGu97BpDxKw/dbBmYcQB41UTByT7j0DKu X-Received: by 2002:a17:907:1b02:: with SMTP id mp2mr23183434ejc.196.1628030823116; Tue, 03 Aug 2021 15:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628030823; cv=none; d=google.com; s=arc-20160816; b=ldrvjggWhnBsQhnOi3gVWT6qMFHazrhQKg8xX5QJuL/1Ul9I6Bma/8YeYefhJPmYOb QIkGgt21UwjIMhMOQOcT0c8t40ueIN5P0dKFN29EjE1jzR3qdw5FSV10U8O3PJT9C1iJ UKQoogVG0aKnmrcbm6kSHP6/Ko2wa9PynLRIikD1Z4HCzfFqOmo4T18HP1Tmu5a4kxrQ 5Mu1RK/5PAl1DFMTTOdXL4tvo9OI786pF//XNiMfmKqnG8zQG8q85PlZKj5P8yEQLpBm QggduYAtoYvB/5qsQK4zTR50Y2CMe7dts+pCTsUA27D2tTaTftHaEa5kMJlP8ZAjNkEq BExg== 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=zzfUvxj7TjLOmFGZdqOgqP68RBLH+lGG7aM5bN5r1ak=; b=x6+K/FGdsacG7563hek8dkWIE4mi0J7GMsclUwPSU4/012CF68vNk42qDjqabJaJ9J eBO9TYUX2zk5aqiCVa+X/JTFa+b/81piCWH6GA+oASDnYHkKWkZ2QzZCgqIR91znfZxr nK45QQNu3r8FBd5Yir7xSuEaOJYGE6+F6KI88Vz88fzuplRdiUm8W2gTy+jB2k9Ck/9J JNhm+yImPpSBOE5ASDjZUFwhb6er2qYL7nQHUPY7j9yk4ZL6ZLW4wl6q/CpjuVyTPBp0 MlEcKfUEU9/KDVGHWVAqQxEZdpNcUrduNMiLm3TuhGIiu2p4JCaWOr/Rf2PzXQnrvmIk 19cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kxfn2O7i; 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 j12si151982edt.282.2021.08.03.15.46.38; Tue, 03 Aug 2021 15:47:03 -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=Kxfn2O7i; 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 S233841AbhHCWhM (ORCPT + 99 others); Tue, 3 Aug 2021 18:37:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:54464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233796AbhHCWhH (ORCPT ); Tue, 3 Aug 2021 18:37:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B829E60EBB; Tue, 3 Aug 2021 22:36:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628030214; bh=XqGUnp6HhB5XCqxFjh9U8lbifuggEtKCWvOnpHJsWdg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kxfn2O7iui9wxfFfavOHOI5qLm89L9mVA0HpEfcbq0NKuEm0ri8MLAXMnu/KlhZwb ZSwlQ7gSykW56NnN1U/4I1KPiGPstQVy1/ak0BzSlm9WV7PsnOltncJLLBYT7POufu hkoCPaesSuGQqAd1aPuB5dMq3sC8MF23w5IOI0o0Kyaso0jbzGNRg334BSKi5RvNPI 4F/1wt4S7dm9rcd0Ol+G/UK2k+uVtM/vXimcIkzsvfMHBffinQEYwDXALHDwU97o8o zImJtHBE0vTQM9pL3u6wjmGDy4uTGMn6Sb0Btk5gg45eTkdpDQJbv16M1hKirdcs6I srEg09bU6YyhQ== From: Nathan Chancellor To: Greg Kroah-Hartman , Phillip Potter , Larry Finger Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH 3/4] staging: r8188eu: Remove self assignment in get_rx_power_val_by_reg() Date: Tue, 3 Aug 2021 15:36:08 -0700 Message-Id: <20210803223609.1627280-4-nathan@kernel.org> X-Mailer: git-send-email 2.33.0.rc0 In-Reply-To: <20210803223609.1627280-1-nathan@kernel.org> References: <20210803223609.1627280-1-nathan@kernel.org> MIME-Version: 1.0 X-Patchwork-Bot: notify 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 --- 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