Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1648667rwl; Sun, 26 Mar 2023 06:43:55 -0700 (PDT) X-Google-Smtp-Source: AKy350ZTuabR5wer9wTq8TA2baejWJPjje/+rGhH6XQWGSY3qC90Un4KdSG6ZsHllDXqD/rJdkoz X-Received: by 2002:a17:903:5cb:b0:1a0:6139:e9ef with SMTP id kf11-20020a17090305cb00b001a06139e9efmr8062169plb.59.1679838235296; Sun, 26 Mar 2023 06:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679838235; cv=none; d=google.com; s=arc-20160816; b=Xmy18hdmtubx2Y8FcOHPHi8OW3XaIBxYm1r1dVbL6KUVOTIebEfzh2eaB54LhBG5XI 4Ak8WJPDjFv7jPu1VDpmgjrT2Ld0tvYRCLJdkHIJPTT1vgtvlVvWTHhn2AioInLIbVLg 5SxKUtscA424rkhyxHRn8a+eXLBD8jo3wWCelwwRrGssY237Rial/vGb8TS2tiiwl5c5 UCivM+5TTDk/b5u9OIENZyZ1br3CYf6HFAB+Dx0RNV/7qaYXQ80ic68VFbRO9CL6cNiP qW1X37ZOTYXcUDqeNZWtPZvCpzHUELzei8vLwhog35fKZ99qQMrvN5+s/SC/xGdSV3+y L9fQ== 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:cc:to:from:date:dkim-signature; bh=pZ4lMKTFw06YnTc8NifJzqIqYvYwAYP/kSH302nfF0c=; b=SAPCmXSnIfwNETqQzyeRvrNhxahSQbaElrFWs3Z56yRjtcDELHH2Gr45rqA/ZWW7mP Ep6/JElv4cCfk5BzVT8rGAxVUAIUsiZC2wXXBVXv3I0WQYnnGEBUirtCFdJKlzhYjk4G KR6OG36OiGD4U22ijLljbK4tvo9nVcYlMcCrLvuwgYPNa/RCyNOZjdqlAJKHVVJ5b+YW LhvsQd1wM1he8kMmYFp58huRn+iNxUIbX8O5sipqEb2NduFJW9d/pWLdUBTDxMelbW+t 2wPCck/m29zBUSiMujG3UpPTC256x1jb6Tcwn74lEwlWPdmJItT+KvKLORn8M5GHlLnJ Ac8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=phANgEHH; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j12-20020a170903024c00b0019f27fd7cb1si5594863plh.150.2023.03.26.06.43.43; Sun, 26 Mar 2023 06:43:55 -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=@linuxfoundation.org header.s=korg header.b=phANgEHH; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231185AbjCZNUZ (ORCPT + 99 others); Sun, 26 Mar 2023 09:20:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231681AbjCZNUX (ORCPT ); Sun, 26 Mar 2023 09:20:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E2BB7ED9 for ; Sun, 26 Mar 2023 06:20:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B4B06B80C91 for ; Sun, 26 Mar 2023 13:20:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA032C433D2; Sun, 26 Mar 2023 13:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1679836817; bh=DCQOATmQzGlfzrAUPN5To5/sRencn+ujNeV4RPDtAhg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=phANgEHH2kJz0I0Oe8aMuD8w0DTDBgbn31+krj3VEfj+obWiF4VMXuS8LN4fdHaz1 d2TbE9vR1zTX2SF0UWh8a681jalSCXPfojgdz6W/Kx3cmlZKJiuZNWdP6340Gp7NVP ReYSLIlSN1UO1BoInk6ycAq5jw2W/Mw/y4oscBsA= Date: Sun, 26 Mar 2023 15:20:14 +0200 From: Greg KH To: Tom Rix Cc: Nam Cao , nathan@kernel.org, ndesaulniers@google.com, artur.bujdoso@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] staging: rtl8723bs: remove unused pHalData variable Message-ID: References: <20230326122321.1352337-1-trix@redhat.com> <8a2746a0-57e0-621b-7db9-2719554d050b@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8a2746a0-57e0-621b-7db9-2719554d050b@redhat.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 On Sun, Mar 26, 2023 at 06:13:16AM -0700, Tom Rix wrote: > > On 3/26/23 5:55 AM, Greg KH wrote: > > On Sun, Mar 26, 2023 at 02:46:52PM +0200, Nam Cao wrote: > > > On Sun, Mar 26, 2023 at 08:23:21AM -0400, Tom Rix wrote: > > > > clang with W=1 reports > > > > drivers/staging/rtl8723bs/hal/hal_btcoex.c:1182:23: error: variable > > > > 'pHalData' set but not used [-Werror,-Wunused-but-set-variable] > > > > struct hal_com_data *pHalData; > > > > ^ > > > > This variable is not used so remove it. > > > > > > > > Signed-off-by: Tom Rix > > > > --- > > > > drivers/staging/rtl8723bs/hal/hal_btcoex.c | 4 ---- > > > > 1 file changed, 4 deletions(-) > > > > > > > > diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c b/drivers/staging/rtl8723bs/hal/hal_btcoex.c > > > > index e36f8c369a04..0cb2adcc1f78 100644 > > > > --- a/drivers/staging/rtl8723bs/hal/hal_btcoex.c > > > > +++ b/drivers/staging/rtl8723bs/hal/hal_btcoex.c > > > > @@ -1179,10 +1179,6 @@ bool hal_btcoex_IsBtDisabled(struct adapter *padapter) > > > > void hal_btcoex_SetChipType(struct adapter *padapter, u8 chipType) > > > > { > > > > - struct hal_com_data *pHalData; > > > > - > > > > - > > > > - pHalData = GET_HAL_DATA(padapter); > > > > } > > > If this function doesn't do anything, does it not make more sense to > > > just remove this function entirely? > > This function is already removed in linux-next, so it doesn't matter :) > > My patch is against linux-next from tag next-20230324 Ah, ok, well it will be gone in the next one, as this is already gone in my tree. thanks, greg k-h