Message ID | 20230329131444.1809018-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp415598vqo; Wed, 29 Mar 2023 06:31:35 -0700 (PDT) X-Google-Smtp-Source: AKy350YhC3xVMz4DfGHcoEZdrL/vwHm3kFNXHmEi2SdYrbPh6qlcuzSK88bBVo+K6Dev52PTmPXT X-Received: by 2002:a17:906:bcdb:b0:92b:5c67:c660 with SMTP id lw27-20020a170906bcdb00b0092b5c67c660mr19500522ejb.69.1680096694726; Wed, 29 Mar 2023 06:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680096694; cv=none; d=google.com; s=arc-20160816; b=BCI2XRgIUzb0QeLKTXsBYNEItIMKVdqkiuCjbsqLWZXabYmxWnN7K8+AjZJm0jPaOA bMeeq/XwjxE25ZaCVDB0oRxc+MR6ebZ8s5zvL5FXSSiseEgCORFC0nDRsd8uF1WXb4EH mo9vK3Jx4PB9kfoiAVtJVu6Ehz6aCpo2SVWxacnVdxHrZg3z84uDmCmKxr2NrsnrXFN/ z/KYVwL/azKZQB9oC0nTdAlvqmACtZJY6uRQ6BsMuht87uAhyUAQ/DIQHvXLgynWUsyr 0TpXeI5pKKdnJoktUJ3+cip4bp5VW3FVRcVNCWOf/G5w+1sbc+Y/cu3lydlGG9beA1uq sEsw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=WPdjBuNFJA01CaowYyCwadzYirboBSCd7QNKpN6vC7Y=; b=dudXJ6+iHrNK0mf4D7j8RUjtrSNbxqp/PnQO0qtEicy35b3LB+kOfbNQ5jdv4kr8RK 4B5+TInXqvnUS7UexcVe9vpAfMruKmKBJ8ZiauFpxjIC/kh70dVsBqT9Y0xIkIdNLR33 AfxTy7YLuEy/sdTJivIikNhvV8755JRW/iy827u0gr3Xqw3R/6N1zFx60OQ2cW5a1NG8 mAA1uQDMkHekZE8qZkGwCehKa6gk0gDdQTnwOSYaDeULCT3IqqI+yZyPoK6TlpaCNdjE To+jsdCcYQTUKlTd5DQZz4Zriu46BLLdWnwjxshYX1zl5Maz/Lv+7afZ4moiSLAGSheX 91cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EIsHOsHe; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt38-20020a1709072da600b0093e842cedb4si14916326ejc.195.2023.03.29.06.31.11; Wed, 29 Mar 2023 06:31:34 -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=EIsHOsHe; 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 S230103AbjC2NPg (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Wed, 29 Mar 2023 09:15:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjC2NPe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 29 Mar 2023 09:15:34 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D0074219 for <linux-kernel@vger.kernel.org>; Wed, 29 Mar 2023 06:14:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680095690; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=WPdjBuNFJA01CaowYyCwadzYirboBSCd7QNKpN6vC7Y=; b=EIsHOsHeqYQ2oPNpech9pjU34x7hp9oP9VqXuQLbsmNbh6/Pnn7M4OmaHW3Q1orZmYRvQp hXisUk8/zpdHWeEGPiKhAH7sU2i8ZhqsCnH3udwZ5hMmV/zxaAQJNNAVzADiUO9d7zQ6CC st+cU6bWcS0V4GNqRyMmtRaq/7ttI3M= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-668-48p1Ep-UMM-_-A3vongPIA-1; Wed, 29 Mar 2023 09:14:49 -0400 X-MC-Unique: 48p1Ep-UMM-_-A3vongPIA-1 Received: by mail-qk1-f198.google.com with SMTP id 203-20020a370ad4000000b00746981f8f4bso7286217qkk.13 for <linux-kernel@vger.kernel.org>; Wed, 29 Mar 2023 06:14:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680095689; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WPdjBuNFJA01CaowYyCwadzYirboBSCd7QNKpN6vC7Y=; b=YUqVm3Vr+zxPe5NAO9UAcoBna8hchH0jzkrQDYo1pLduT0yfchUHipIpi5hfwyeaOo 2Sh416CDGewIBhyu397iOliW8EKPZz1xsv2kQRTrIRW8WCHAcpPaLRETgjKjNPYqe2gE xCR9g0bGj9uVybJHVZSqZYTTXdMMADXgyp//7YmGLDn6KEPtSylurxhaJjjy5RQXq115 brNsdRWMk+f+YCAJEUz1jP8gmBzgwew9mzIB3nm2u2DrvRvrbyesrPMwD3OS+MQryhgo 5xuK2CRzgliSlcnZyVsSKvcMNMDrECXbT7bO+Z3DIlSpWGvv6f3kXdGP9ui0+1FBjvDU 511Q== X-Gm-Message-State: AAQBX9fwF9v2oOCg1o+BNYPsGGwwJKnP1zEimcHSikAsfF1ZlUDyoX+0 BjovVxezAVnhZpR1aiRrs16L5Qt3Szc+9ZFUPkz2Bx7X3vPP/NJxU1iYahsuzvzsp+SDUz6H2ec rv7U5aS602kaUJQGkIdTMcKYc X-Received: by 2002:a05:622a:1aaa:b0:3e0:b1cc:40e1 with SMTP id s42-20020a05622a1aaa00b003e0b1cc40e1mr3420397qtc.34.1680095689090; Wed, 29 Mar 2023 06:14:49 -0700 (PDT) X-Received: by 2002:a05:622a:1aaa:b0:3e0:b1cc:40e1 with SMTP id s42-20020a05622a1aaa00b003e0b1cc40e1mr3420351qtc.34.1680095688803; Wed, 29 Mar 2023 06:14:48 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id f66-20020a37d245000000b00745f3200f54sm18486229qkj.112.2023.03.29.06.14.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 06:14:48 -0700 (PDT) From: Tom Rix <trix@redhat.com> To: amitkarwar@gmail.com, ganapathi017@gmail.com, sharvari.harisangam@nxp.com, huxinming820@gmail.com, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nathan@kernel.org, ndesaulniers@google.com Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix <trix@redhat.com> Subject: [PATCH] mwifiex: remove unused evt_buf variable Date: Wed, 29 Mar 2023 09:14:44 -0400 Message-Id: <20230329131444.1809018-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761709071514298024?= X-GMAIL-MSGID: =?utf-8?q?1761709071514298024?= |
Series |
mwifiex: remove unused evt_buf variable
|
|
Commit Message
Tom Rix
March 29, 2023, 1:14 p.m. UTC
clang with W=1 reports
drivers/net/wireless/marvell/mwifiex/11h.c:198:6: error: variable
'evt_buf' set but not used [-Werror,-Wunused-but-set-variable]
u8 *evt_buf;
^
This variable is not used so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/net/wireless/marvell/mwifiex/11h.c | 4 ----
1 file changed, 4 deletions(-)
Comments
On Wed, Mar 29, 2023 at 09:14:44AM -0400, Tom Rix wrote: > clang with W=1 reports > drivers/net/wireless/marvell/mwifiex/11h.c:198:6: error: variable > 'evt_buf' set but not used [-Werror,-Wunused-but-set-variable] > u8 *evt_buf; > ^ > This variable is not used so remove it. > > Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Simon Horman <simon.horman@corigine.com>
Tom Rix <trix@redhat.com> writes: > clang with W=1 reports > drivers/net/wireless/marvell/mwifiex/11h.c:198:6: error: variable > 'evt_buf' set but not used [-Werror,-Wunused-but-set-variable] > u8 *evt_buf; > ^ > This variable is not used so remove it. > > Signed-off-by: Tom Rix <trix@redhat.com> There should be "wifi:" in title, but I can add that during commit.
Tom Rix <trix@redhat.com> wrote: > clang with W=1 reports > drivers/net/wireless/marvell/mwifiex/11h.c:198:6: error: variable > 'evt_buf' set but not used [-Werror,-Wunused-but-set-variable] > u8 *evt_buf; > ^ > This variable is not used so remove it. > > Signed-off-by: Tom Rix <trix@redhat.com> > Reviewed-by: Simon Horman <simon.horman@corigine.com> Patch applied to wireless-next.git, thanks. 074d0a1ae1fe wifi: mwifiex: remove unused evt_buf variable
diff --git a/drivers/net/wireless/marvell/mwifiex/11h.c b/drivers/net/wireless/marvell/mwifiex/11h.c index b0c40a776a2e..2ea03725f188 100644 --- a/drivers/net/wireless/marvell/mwifiex/11h.c +++ b/drivers/net/wireless/marvell/mwifiex/11h.c @@ -195,7 +195,6 @@ int mwifiex_11h_handle_chanrpt_ready(struct mwifiex_private *priv, { struct host_cmd_ds_chan_rpt_event *rpt_event; struct mwifiex_ie_types_chan_rpt_data *rpt; - u8 *evt_buf; u16 event_len, tlv_len; rpt_event = (void *)(skb->data + sizeof(u32)); @@ -208,8 +207,6 @@ int mwifiex_11h_handle_chanrpt_ready(struct mwifiex_private *priv, return -1; } - evt_buf = (void *)&rpt_event->tlvbuf; - while (event_len >= sizeof(struct mwifiex_ie_types_header)) { rpt = (void *)&rpt_event->tlvbuf; tlv_len = le16_to_cpu(rpt->header.len); @@ -231,7 +228,6 @@ int mwifiex_11h_handle_chanrpt_ready(struct mwifiex_private *priv, break; } - evt_buf += (tlv_len + sizeof(rpt->header)); event_len -= (tlv_len + sizeof(rpt->header)); }