Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1600587rwl; Sun, 26 Mar 2023 05:55:24 -0700 (PDT) X-Google-Smtp-Source: AKy350ZxSpvJDuhROvX4A51Y78/gW4PJOGjjgQ7lhsdP5H4Ll94QjHrYtJ06B7gVbPg/wMtP4NIj X-Received: by 2002:a17:90b:3e81:b0:23a:ad68:25a7 with SMTP id rj1-20020a17090b3e8100b0023aad6825a7mr9686646pjb.2.1679835324637; Sun, 26 Mar 2023 05:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679835324; cv=none; d=google.com; s=arc-20160816; b=HkIlDXsKqk34PJfClRcwXlsL2F8Mg2GQzeziC7gfDaJKCROvnl01zah5+caHvEmYaM /g4MPOGbDm7aVwgmBfPNGVZQMzNJ+XALUX9qgZXCysgcJA0Jd6cQxgGG6rB3cNvk/V8c GHCvPHXBXt0S48hQ5tgN8nmEhHuli2B2sLWHD+Qkk7lQVLac1wbGauEHDrtGQT3UyANg oC9vNqS6b6FeRUF6/zgvVQ1gF2Pss4WjdRq3Y24Nrth9jSvTjfH44Ba8+oQYao1fj0TD G2MBBFeTj2Vwuo63Q8sh9iDC+1g8wGY6J2Pm2n390gyP0jzekY52F8r35rkJGJwEDeU9 GeYQ== 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=rSVPQZLvMg8MxPtgtJhR5Wq1fUwwDFt0dAXT8YpYgaU=; b=OV3rpYNrSZxj2Ukqra2trXKJo2aMLVa12xaEacOC4DKdR8DVQNaRt0ssObox5Dt3T9 a9CizdXQ3+3TbJFnfSknemDvBfZ2AoMMAhtmes4cn+3ukEtZhEeoPOkEiwpzYA3ff6W6 +PMkomVF0rGat3rr0l1qbFKn288EO9rwXSSYuBGCp0mEeELmRhx3Vi1lCHNxY0/nbLgU xBHAd6ESzjbGeq5M+deea4dYM+CaNtBmAMmz58cGVbSCFCZKJ8LqVYebpMA4kLyt4GFM uJbNFIyoLLQsXrpbA6dj7r+pslEmvnyHdTlD7nX+QvB9YeQeloXN4WdEeoqc+lhjljDz I8Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iB8dEQPl; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a17090a974a00b00233a9c98466si8156332pjw.189.2023.03.26.05.55.13; Sun, 26 Mar 2023 05:55:24 -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=20210112 header.b=iB8dEQPl; 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 S230206AbjCZMq5 (ORCPT + 99 others); Sun, 26 Mar 2023 08:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229763AbjCZMq4 (ORCPT ); Sun, 26 Mar 2023 08:46:56 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 721197D98 for ; Sun, 26 Mar 2023 05:46:55 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id cn12so25255707edb.4 for ; Sun, 26 Mar 2023 05:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679834814; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rSVPQZLvMg8MxPtgtJhR5Wq1fUwwDFt0dAXT8YpYgaU=; b=iB8dEQPl+YY+fah8Jik5YmwFYZ1C76EJD+O2kEfEkm3OinnmZIBJ1N+GC97dDhRs0K iA7Vj8rZVgRWrxUl+H9jwetFlxrbJUQo+KVJntA3aBgLbtGFbvAMVoDHlysV/RFlbj7Q hzqvDUdZzZy3KZ6wBvgeykVDK4T7NeHKsm6KFhjA7nPc4tOWCWFUsXTbGQO2Gb5twdfx PYA4MQKqwECT/J9+s3A+IBPXDXtiCn08dG4NGunzQwfjiX5BiS2555qz13T+qdUzMeTB JKagAXQcLnz1XIFKSuG0caB4AZBX9c8+AM6PuQlrPllBhZx++zsjdeuybOf/UWZiwy1s CAPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679834814; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rSVPQZLvMg8MxPtgtJhR5Wq1fUwwDFt0dAXT8YpYgaU=; b=OjTGHlqArUxV1B4ag38yUXCWY+LFAEXHnmtiF74gslubGWMWPaAhz5cQr2++VtOU21 qrTpttmsDq5XRQ3FziGp1GhnsP2fhKYEIzdMySqtRRUiBqMWYbJebXotOvOMSiOud+9u KgKsXlTQkZWLAqBuMPLEsHG2aNee3Gfy+hWg8c884HfHoyuhhm5LchkfkCOnUfO8qXrB ObPHt6/LXqSyzXwjWQkd049iCR9qqnFLYflEMUVqiM5XPMTzUD2lL2pVR6UKbDBkll2f rLsE6vtHbA+S6ObzV9iPyTiz94akspxtI6ydcEZ1P4UtREcIqUS2C/fHFe7P/AiGlgRj td4A== X-Gm-Message-State: AAQBX9erV/ACLkoROUeXyBGtrFvFCnHnw0xh5j+/r/EgRX93reMpFPga VKRDfJGzKJnrgOdfJTR8LHM= X-Received: by 2002:a17:906:fc1e:b0:92b:f3c3:7c5f with SMTP id ov30-20020a170906fc1e00b0092bf3c37c5fmr8581612ejb.53.1679834813916; Sun, 26 Mar 2023 05:46:53 -0700 (PDT) Received: from nam-dell (ip-80-113-101-30.ip.prioritytelecom.net. [80.113.101.30]) by smtp.gmail.com with ESMTPSA id f23-20020a1709064dd700b00931536d461fsm12885452ejw.20.2023.03.26.05.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Mar 2023 05:46:53 -0700 (PDT) Date: Sun, 26 Mar 2023 14:46:52 +0200 From: Nam Cao To: Tom Rix Cc: gregkh@linuxfoundation.org, 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230326122321.1352337-1-trix@redhat.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, 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 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? Best regards, Nam