From patchwork Fri Mar 24 13:50:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13186769 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C0D3C76196 for ; Fri, 24 Mar 2023 13:51:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231831AbjCXNv2 (ORCPT ); Fri, 24 Mar 2023 09:51:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231444AbjCXNv0 (ORCPT ); Fri, 24 Mar 2023 09:51:26 -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 94DF31B2DA for ; Fri, 24 Mar 2023 06:50:37 -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-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-617-rs2i2kKPP3iE6EQIlpMJig-1; Fri, 24 Mar 2023 09:50:34 -0400 X-MC-Unique: rs2i2kKPP3iE6EQIlpMJig-1 Received: by mail-qv1-f69.google.com with SMTP id z14-20020a0cd78e000000b005adc8684170so1038286qvi.3 for ; 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=U1+wcUWHTjMx6c45PU71x3aX6HXvfMbvarxFiiDR4Spy5iOOola2AtLVXNMcYSEQ24 p8B43u3yQlo8+NhH6XB3IF0McpweNHGgZhi7AoL244t92gDR4qM1rDvB2sIZQtDLZUYL OWjmy17hnmFaKLVloy25its7ZDREZ50FabH8zI5u0DuL5lBTqeSAtSJsERNvOaGtKQdO kwKHK6IuiAVfluUzhlkVp/ul/h/TMnUBfQB+XVlfD1nzfnbxeaPSUEPqAWad0qWUK1se 0cVSe/7Fi+/t8YwmvSgAW1Ko+7VS9WGcHRN0BTBATgpLyRCzYdChQ9SVgG31oiopsxeN k3Ew== X-Gm-Message-State: AAQBX9fmy5blEHF7HMLA4n85uVN5JlpwGCeNBv0jdgnTNeTixoelowBj OcMMTYrRM/Qhe5O22ixYqnx3WdF7UAt2vqaRoL9d5XtwQKglg6ywJcbVzwgb74LGPY8yGIWTibn 8G1WNznf3ZgN5IfO2 X-Received: by 2002:a05:6214:1c81:b0:5cc:97fa:eec9 with SMTP id ib1-20020a0562141c8100b005cc97faeec9mr4261665qvb.25.1679665834194; Fri, 24 Mar 2023 06:50:34 -0700 (PDT) X-Google-Smtp-Source: AKy350ahlHZPmdC3xd97ab7RGu9groXWTX+2fdJ9Ht5qCwv4vBumlH8C1WLa0jD3fUCrLsQs2svgVg== 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 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 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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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 Acked-by: Larry Finger --- drivers/net/wireless/broadcom/b43legacy/radio.c | 17 ----------------- 1 file changed, 17 deletions(-) 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)