Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1634274rwl; Sun, 26 Mar 2023 06:27:56 -0700 (PDT) X-Google-Smtp-Source: AKy350Ya5qegv9zatDB8EKJao6x/WDWuQvBHHdypeKnN9Bv4NoCA1ydKgpTc2qGLmRNVl3WpZij/ X-Received: by 2002:a17:906:608f:b0:877:573d:e919 with SMTP id t15-20020a170906608f00b00877573de919mr8531356ejj.20.1679837276027; Sun, 26 Mar 2023 06:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679837276; cv=none; d=google.com; s=arc-20160816; b=HQbW+GtRWUJXY7Ozem6yRP9wjECmHOa5s9s/acWMBY+1pZKazSr1vSgqzKgu142pS0 R1h4RhNQ35rnExBwOIo9oce7g9tQlZtei4gDg6R/oX1bIQE+tB8Fg7SZu1J5NdkdcVb5 560wNIT8RD9YczHtxU5LyqczhHWUVeAMklA8jpCMJSRYrnPddy/Q0LiWZul9gn9K2bOJ rR8DGUX6tYFMjbRk5PwFw/3xU4ZNttyN/DnjlgMInU7IBbj9J+eIUIkFI5RBVw3njjI0 jYaRHq6zBNswxQzE3hwR60e/glDFnVBJKpty89vIRR3w3S/qe7ZBA9p9jVB5Ipbtxge/ 1XaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=WDmH+gmU6zt3mD2nO7zm/sbyoPAN9cTAbp6KyhpDGG0=; b=aRrYJJoJS2vp229XOuvsb62k2nUntu/3+lZiCLu8QWLtKfy15N7NaKCR4sESi9XEPr WLo6dNWLf8CButmk/GLClZLKclUXmpm1mmjoea+UTGGRkFok6JVVRYGoC57meSC76K4S 4ZgyAHjVrsM4komIzmhEyJ/jHW0C+EUrJjcF7xies5XJ7Cjrsx/A3YkGval40ayYDW/c dlv9TYiYxhwe162QOtDs0LIRWaAMGH46QClqF+MfPK6urhNW5JLi0WzzlviISy51GTNy S6jJGfVdoqpuYHFA1ZoehgLH0BbbW/i37gX6lRFqaokDUufYwz6rhoCsSt6AC7CVs1up o0Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JMS2p45b; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d20-20020a17090694d400b009263490cbeasi22250039ejy.92.2023.03.26.06.27.31; Sun, 26 Mar 2023 06:27:56 -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=@redhat.com header.s=mimecast20190719 header.b=JMS2p45b; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231920AbjCZNOJ (ORCPT + 99 others); Sun, 26 Mar 2023 09:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231821AbjCZNOI (ORCPT ); Sun, 26 Mar 2023 09:14:08 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02BA27ECC for ; Sun, 26 Mar 2023 06:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679836401; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WDmH+gmU6zt3mD2nO7zm/sbyoPAN9cTAbp6KyhpDGG0=; b=JMS2p45b2rigsSGrN2MzgTVmk4n8RulvVJdPJv1g3Vx4Nf1bDlo5DbMozkLot2fZwEe4O0 Gcf5R2k1KFNOMMg/iS64EdbnRsgltXwWwsfqY9vlutFGuw7UGO+UAgvufR8xDirjrZlw1Y asFV75bkIN057jG6Hou24xquesAffpE= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-571-wwDyYrSqNZWE4ZDkCUCnVg-1; Sun, 26 Mar 2023 09:13:19 -0400 X-MC-Unique: wwDyYrSqNZWE4ZDkCUCnVg-1 Received: by mail-qt1-f199.google.com with SMTP id i24-20020ac84f58000000b003bfe3358691so4188241qtw.21 for ; Sun, 26 Mar 2023 06:13:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679836399; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WDmH+gmU6zt3mD2nO7zm/sbyoPAN9cTAbp6KyhpDGG0=; b=Mk/kUUkw3cvBYfeJbK9VC8p8JeN7kZjV5fm2djJmRmDDNRIjdEMjxaGbodHYNwHeGV KBiY960qOrSaZZa8euALkNZ8kh4UrnNAJXj5rDg6TjmcAb0LeqFNsqQz02+kPJS6cw5q 0VOdq2OC5K5UoT5BpqRRhlYg6EEC5AebSQ/9uqMDtsOo8YUt+rgapYDf1/dgojFpXts0 ajcoWWf5/SR9Nj4z/nUdYl8x+X0k8AJi9Axr9LgHDuCjFmmyGoqddedH/IYHG5DTkirX 1YqAXITYsD1IAgBDFMXRWlocfdE9KSuS5SDB8T5kkzgj6dW7DhJCKLiSWue0FqnKbWJ4 nISQ== X-Gm-Message-State: AAQBX9fRxiV+LL42yT6q0LL+Ao8SXSyUVPPUMfwHEucZX1MWQNSv6ZnG beJf1czJuY5jS943mVUfVR28G6MiniA7mZzc04f9exh5j+mG+OSAXXs0XzwzncvjGokGoAvQ82m EqCq9OtocTG3wjm3rnzeOnu5A X-Received: by 2002:a05:6214:5298:b0:574:8ef8:89d1 with SMTP id kj24-20020a056214529800b005748ef889d1mr14088084qvb.5.1679836399164; Sun, 26 Mar 2023 06:13:19 -0700 (PDT) X-Received: by 2002:a05:6214:5298:b0:574:8ef8:89d1 with SMTP id kj24-20020a056214529800b005748ef889d1mr14088053qvb.5.1679836398910; Sun, 26 Mar 2023 06:13:18 -0700 (PDT) Received: from localhost.localdomain (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id m2-20020a0cee42000000b005dd8b93459dsm2181105qvs.53.2023.03.26.06.13.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Mar 2023 06:13:18 -0700 (PDT) Subject: Re: [PATCH] staging: rtl8723bs: remove unused pHalData variable To: Greg KH , Nam Cao Cc: nathan@kernel.org, ndesaulniers@google.com, artur.bujdoso@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev References: <20230326122321.1352337-1-trix@redhat.com> From: Tom Rix Message-ID: <8a2746a0-57e0-621b-7db9-2719554d050b@redhat.com> Date: Sun, 26 Mar 2023 06:13:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 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 Tom > > thanks, > > greg k-h >