Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp440919pxj; Thu, 27 May 2021 04:04:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGVXPzkFYmK+ZhAmpXZ2jYsb5mFDXjer7l9hIv9ZBfPGMwN10fKlS7Pt05zGo6N1Z7O92D X-Received: by 2002:a17:906:2894:: with SMTP id o20mr3115594ejd.520.1622113459106; Thu, 27 May 2021 04:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622113459; cv=none; d=google.com; s=arc-20160816; b=J0szznFk+qwyabubJNWcwpaOYn5kLqWiTDHsP/W2WJtskYg3LF2N7qEBFVe3y/Bbxl DKiYIJ4T4zLQ+m9B91SH0PG9X+GR7YPiOju0AQ6KsniZBoAmUiiVfZDhWx+jO81awUUe f2FdG8LNZfOl1Sm1rGeovw8qJ+OHUu1RSCgXMeiCjQpn2qv8hNoQYAOac/LoGRmHy6ej 4MthHFeIFP4fJV4ltjlXcOJrPIhxWwoCqyptHI7yd/TELEFfPq7zqm8Gme4Yvr/PS3/E 86W+VKF5blzlUduCG0h7UIq8CNVzQdSu9E2+4EoxYYeCI4v4akYOkFZ1MWGzeihWjHNL 3TWw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZEuQIe6c5hweyvsGeZAaN4uMKeh/qwsgl57yvOHERm8=; b=WBIrIJEG+3Zb68B5+ux44CP3XZCUB29JU2qvY7Wj6FrtRugRzwLgg456tsGtsRx53M YPBrvXeEHBI3xdIh/B77WX6WnIgdlIPbpXf8NK3zs4yZpuPRPzL12uXmrBAt/famxue3 K2JSHeqPglmw6NN16sYM3Y8MLMlOaeyDCxCT4J68ksg+7VKb1e6wVs7SyJOEUdsPw5b6 5dXnne7shL3lEDKhK3JIagPovA0LSE/KoLYnkB7BP8zhuWPdXoted89y+nhF18v5XXH4 Y0hVcQr3gQcuWiAbB3xC1lAv0peMxLCM9LAC2pJoISBZo3MobF5v3LAIlEJ5+tn9Uswx jSAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PNo5sgQh; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ah7si1902845ejc.406.2021.05.27.04.03.42; Thu, 27 May 2021 04:04:19 -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=@linuxfoundation.org header.s=korg header.b=PNo5sgQh; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236309AbhE0LDJ (ORCPT + 99 others); Thu, 27 May 2021 07:03:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:40794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236286AbhE0LDF (ORCPT ); Thu, 27 May 2021 07:03:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ECFDC60241; Thu, 27 May 2021 11:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622113291; bh=w82Buwz/8VJBRCQ6+DiA09zJU8SzJBV2/yXUWLoIPNI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PNo5sgQh8W4nwNmlyMXlmg3EVLOOeUMmjYjTnWGTA78pT7GO3cQOr9FMehZHN7Grh A5mrNzTX6w9bYGiMev/+ojShZQYwVISxD46AhkoG94sFRSLepZWQ5RhTj1mSUMRD+z 4kNopQpYgv9nK7xvvZrW4xAJsDodnb6PKQvr8hxA= Date: Thu, 27 May 2021 13:01:28 +0200 From: Greg KH To: Bixuan Cui Cc: dan.carpenter@oracle.com, desmondcheongzx@gmail.com, marcocesati@gmail.com, fabioaiuto83@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH next] staging: rtl8723bs: HalBtc8723b1Ant.c: Remove unused variables Message-ID: References: <20210526074537.46259-1-cuibixuan@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210526074537.46259-1-cuibixuan@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 03:45:37PM +0800, Bixuan Cui wrote: > Fix the build warning: [-Wunused-but-set-variable] > > drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2710:6: warning: variable ‘u4Tmp’ set but not used > 2710 | u32 u4Tmp; > | ^~~~~ > drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2709:13: warning: variable ‘u1Tmpb’ set but not used > 2709 | u8 u1Tmpa, u1Tmpb; > | ^~~~~~ > drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2709:5: warning: variable ‘u1Tmpa’ set but not used > 2709 | u8 u1Tmpa, u1Tmpb; > | ^~~~~~ > > Reported-by: Hulk Robot > Signed-off-by: Bixuan Cui > --- > drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c > index 518d5354bda4..adfdc4f14b08 100644 > --- a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c > +++ b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c > @@ -2706,9 +2706,6 @@ void EXhalbtc8723b1ant_ScanNotify(struct btc_coexist *pBtCoexist, u8 type) > bool bBtCtrlAggBufSize = false; > u8 aggBufSize = 5; > > - u8 u1Tmpa, u1Tmpb; > - u32 u4Tmp; > - > if (pBtCoexist->bManualControl || pBtCoexist->bStopCoexDm) > return; > > @@ -2716,9 +2713,9 @@ void EXhalbtc8723b1ant_ScanNotify(struct btc_coexist *pBtCoexist, u8 type) > pCoexSta->bWiFiIsHighPriTask = true; > > halbtc8723b1ant_PsTdma(pBtCoexist, FORCE_EXEC, false, 8); /* Force antenna setup for no scan result issue */ > - u4Tmp = pBtCoexist->fBtcRead4Byte(pBtCoexist, 0x948); > - u1Tmpa = pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x765); > - u1Tmpb = pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x67); > + pBtCoexist->fBtcRead4Byte(pBtCoexist, 0x948); > + pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x765); > + pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x67); > } else { > pCoexSta->bWiFiIsHighPriTask = false; > > -- > 2.17.1 > > Does not apply to my tree :(