Message ID | 20230324135022.2649735-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 b10csp641499vqo; Fri, 24 Mar 2023 06:54:14 -0700 (PDT) X-Google-Smtp-Source: AKy350bzjt1yPKqQ6YpTKS7g0B3kOgRNPZuNf00SHD/vqN9+eVQA7hV5YnpnTvof8vCLmjilvLlo X-Received: by 2002:a05:6402:31eb:b0:500:4062:99f7 with SMTP id dy11-20020a05640231eb00b00500406299f7mr3036835edb.32.1679666054004; Fri, 24 Mar 2023 06:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679666053; cv=none; d=google.com; s=arc-20160816; b=iErNS019O4BTdRvUPFpfFo7yIwbfUs8c/kOvEeCbsJDrjQlyL8ICjt6/s7aVTwpPax VN0LH2jBpVUQlzCGXO/N3kYcqXHgQI0tPhtXy0ZWG9qTG77Jl3Rxv0UZLO1yxibNHCkK dWsYoBRwRzIcqGRPt7ydGemvIvKJsGCGt4DcMCwm7YYEoV7ejNewG2aLwgIo0kgDw2T0 lG7ENgxtl4o/mqjW4vaga3a0uOECelnPIYyE3rTG1e8IlxW7OFAJYg+HwNffzOHQX43V Zq6I7R08x2eoinGqheJDOimv132xSOIVIT9poq2ltu04Z+wY5oYsuxVL9IOS3VcB/B94 E8Sw== 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=FMTjZQ/T7fVsB9p23mpEDbCQHzwssIrPeWULDPJBsw4=; b=fHk4WlmQEgHhJCyB1zMggG/eDhaLKUhmZ1zn91AH3VSsDD6bRMYToGSEbrWwNsddp2 v1owT1uYTPhCETQx+xpX0wONJ8ecQQJKX6CbGSHkEcPpsEBSYdPkOd11mn6bUBDxWQmb AS1q/G9WV0dfL+1jIP+hUDrVYuBXbnlIpeymC2cuEmB2O6NlYL9Y0FYmrdUrbg6s2pWT DHihjM+qKkPrKHlsMjC5iAiV1E19oT7WPtnmZFUQlQVMF7m9lkxZ9dgKNVpuP/GlsdxZ po9yEuZzcG0xfs4Kti6ps7UYgk6BPRwqEVy9UGGuyVWqBrzzJpO+mgHrI2JJOg2v6Di+ KjYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ifp9Xiyl; 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 gz22-20020a170907a05600b009332bb8b1fcsi1023898ejc.842.2023.03.24.06.53.49; Fri, 24 Mar 2023 06:54:13 -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=Ifp9Xiyl; 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 S231789AbjCXNv1 (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Fri, 24 Mar 2023 09:51:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbjCXNvZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Mar 2023 09:51:25 -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 539D21ADFE for <linux-kernel@vger.kernel.org>; Fri, 24 Mar 2023 06:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679665836; 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=FMTjZQ/T7fVsB9p23mpEDbCQHzwssIrPeWULDPJBsw4=; b=Ifp9XiylYe8tY3v53WeiLqRDIO2dq1ttjrxW7AsFxygL4EwbeCOf7vR6UJZQStWeoBPOfR 7oJZNAcVYcS79M4Ajp987e2wjVomEJXwOjkVnZ27XlqnNLZv7vyg8Z3ZJsBb6bO7V117lU ZUaDD8619IW7FtgAI//pxFvMne9F99g= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-KD22LTAkMsOLncBFla067w-1; Fri, 24 Mar 2023 09:50:34 -0400 X-MC-Unique: KD22LTAkMsOLncBFla067w-1 Received: by mail-qv1-f72.google.com with SMTP id c15-20020a056214070f00b005bb308e7c12so1019004qvz.19 for <linux-kernel@vger.kernel.org>; Fri, 24 Mar 2023 06:50:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679665834; 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=FMTjZQ/T7fVsB9p23mpEDbCQHzwssIrPeWULDPJBsw4=; b=dgt9LjcYu8+CNhsNxbnxb/iptdjjGO9JV6Hq3dlvKYfLliikamnJEgOlomBzSeYRvL 2UnMx0U1Ji+vppyFwM6wiLsWwMRmXCTu42Tlc+v8Pj0k3V+6S3SReD06oTKo5N/ycr8U srNC5+RsHk72fzUXBICZp0sfyGWTSNVoBmyR8NhGQBNhqPDb0HnUQ9RiOr15LTZtTKi2 t8u5HX3kwJNNWCkKXY33TAcAcn9Hr3zpWHbQUNab8S4gWW13KV06aHJD6+/kPEQZ/9SQ 6j2TheWy3xNwnaNs89N8Paqgk69nRpFEQIhZTBZQFIj5AYBg4nO8i4XemVLyKCnI2l69 fu/Q== X-Gm-Message-State: AAQBX9cLgcggrGdv0Wg6lDyExg8i1AQPspvL2DGnwtBVql5xw8fd7/BD ZobjeYAZuKFlfMgEV/3JRdvQhR4hLRP2t6NirGEIF5inhiEyLGu4oxx2GHULmd0Lc7tIofpX+Mm 6nZOT+swNX7biKnLVSOuhI3rh X-Received: by 2002:a05:6214:1c81:b0:5cc:97fa:eec9 with SMTP id ib1-20020a0562141c8100b005cc97faeec9mr4261670qvb.25.1679665834197; Fri, 24 Mar 2023 06:50:34 -0700 (PDT) X-Received: by 2002:a05:6214:1c81:b0:5cc:97fa:eec9 with SMTP id ib1-20020a0562141c8100b005cc97faeec9mr4261627qvb.25.1679665833983; Fri, 24 Mar 2023 06:50:33 -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 ks10-20020a056214310a00b005dd8b934573sm697466qvb.11.2023.03.24.06.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 06:50:33 -0700 (PDT) From: Tom Rix <trix@redhat.com> To: Larry.Finger@lwfinger.net, 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, b43-dev@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix <trix@redhat.com> Subject: [PATCH] b43legacy: remove unused freq_r3A_value function Date: Fri, 24 Mar 2023 09:50:22 -0400 Message-Id: <20230324135022.2649735-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?1761257512227990418?= X-GMAIL-MSGID: =?utf-8?q?1761257512227990418?= |
Series |
b43legacy: remove unused freq_r3A_value function
|
|
Commit Message
Tom Rix
March 24, 2023, 1:50 p.m. UTC
clang with W=1 reports
drivers/net/wireless/broadcom/b43legacy/radio.c:1713:5: error:
unused function 'freq_r3A_value' [-Werror,-Wunused-function]
u16 freq_r3A_value(u16 frequency)
^
This function is not used so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/net/wireless/broadcom/b43legacy/radio.c | 17 -----------------
1 file changed, 17 deletions(-)
Comments
On 3/24/23 08:50, Tom Rix wrote: > clang with W=1 reports > drivers/net/wireless/broadcom/b43legacy/radio.c:1713:5: error: > unused function 'freq_r3A_value' [-Werror,-Wunused-function] > u16 freq_r3A_value(u16 frequency) > ^ > This function is not used so remove it. > > Signed-off-by: Tom Rix<trix@redhat.com> > --- > drivers/net/wireless/broadcom/b43legacy/radio.c | 17 ----------------- > 1 file changed, 17 deletions(-) Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Thanks, Larry
Tom Rix <trix@redhat.com> wrote: > clang with W=1 reports > drivers/net/wireless/broadcom/b43legacy/radio.c:1713:5: error: > unused function 'freq_r3A_value' [-Werror,-Wunused-function] > u16 freq_r3A_value(u16 frequency) > ^ > This function is not used so remove it. > > Signed-off-by: Tom Rix <trix@redhat.com> > Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Patch applied to wireless-next.git, thanks. 4c7f8c237d32 wifi: b43legacy: remove unused freq_r3A_value function
diff --git a/drivers/net/wireless/broadcom/b43legacy/radio.c b/drivers/net/wireless/broadcom/b43legacy/radio.c index fdf78c10a05c..8d7eb89c1628 100644 --- a/drivers/net/wireless/broadcom/b43legacy/radio.c +++ b/drivers/net/wireless/broadcom/b43legacy/radio.c @@ -1709,23 +1709,6 @@ u16 b43legacy_radio_init2050(struct b43legacy_wldev *dev) return ret; } -static inline -u16 freq_r3A_value(u16 frequency) -{ - u16 value; - - if (frequency < 5091) - value = 0x0040; - else if (frequency < 5321) - value = 0x0000; - else if (frequency < 5806) - value = 0x0080; - else - value = 0x0040; - - return value; -} - int b43legacy_radio_selectchannel(struct b43legacy_wldev *dev, u8 channel, int synthetic_pu_workaround)