Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1147875pxj; Sat, 29 May 2021 04:52:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0HnOH9VxdDZlBnoyhWNJ1w+9WJPyIiN/kfRt4QpgNr6DiB6Nd2eUr33qwPHhJ1aSTmpe6 X-Received: by 2002:a5d:914f:: with SMTP id y15mr1484346ioq.196.1622289135196; Sat, 29 May 2021 04:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622289135; cv=none; d=google.com; s=arc-20160816; b=IDDGrP3lurj4Ozb9qfIcda7nF7FgRFCgNfQiFjypbmUbNWKi2qPsSb+Uu5HyR7LPj2 SReF2jscIFYqo/QFEuUf3qL62I49UbuPXpDXOkGVnho0paAqYi2EpTBtScWBqnXKjSEI 9RU0tlK/1Ol6dOOctBfc8osVU7VPKI5xmgim75vi5GKKn6sF/ECr2hZ7TMOXSf2gLQ+G 1I7/S3aEl4n4QN6o1C2hhl7zeziOE+S/UPNZu6Qt5hIzRYdqRqFWhwmzHyC/NgXXRoBS eYuOJuFIUTf3s5MZsIl7+oksm1Z+FvZ1ODo/8udnkU7ny7EYbxprqaGO8gXNv3onexya uwfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=xUJ23ysPUue7OIRkNCNAjYgVWxM72l1Lk72iAtWtPVA=; b=qkCdnv+aPMChw9Ou7ENrE8WvF97Gs+LMYvX1hX/rtUPFk8/kpY5+gLTxTuIJRHI2Qc jm3AiGal2mH3TzEQ6WLMOm41LFXQUC5XYs1n19EPSvXZAhTG3SktQj4R2xsA/K/4V7QD 46jKfTEoGrSKOjJpVPBNmJOJ7+ZOoz0mQfDZUfV6Bfhr6Dg6Nzq6NLe4h3iXqktNYs/M q3UFZ31QZu5u/x7PYBS+zFxv4GetnIzcDe69QHHjlS3HGhVeVYG0B7OoGJXfvTxiQCyP r7oIsXkq1YAKZ5azBBSr9BebVga9WDfAB2xvB0N4mQIcVyNXC6bpt/B6J/hHzwUk97bv oZFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si7997337ilo.84.2021.05.29.04.51.57; Sat, 29 May 2021 04:52:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbhE2LxX (ORCPT + 99 others); Sat, 29 May 2021 07:53:23 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5146 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbhE2LxX (ORCPT ); Sat, 29 May 2021 07:53:23 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FsfwH4BJ7zYpF7; Sat, 29 May 2021 19:49:03 +0800 (CST) Received: from dggema769-chm.china.huawei.com (10.1.198.211) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Sat, 29 May 2021 19:51:44 +0800 Received: from localhost (10.174.179.215) by dggema769-chm.china.huawei.com (10.1.198.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Sat, 29 May 2021 19:51:44 +0800 From: YueHaibing To: , , , , , CC: , , , Subject: [PATCH] b43legacy: Remove unused inline function txring_to_priority() Date: Sat, 29 May 2021 19:51:31 +0800 Message-ID: <20210529115131.6028-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggema769-chm.china.huawei.com (10.1.198.211) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org commit 5d07a3d62f63 ("b43legacy: Avoid packet losses in the dma worker code") left behind this. Signed-off-by: YueHaibing --- drivers/net/wireless/broadcom/b43legacy/dma.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/net/wireless/broadcom/b43legacy/dma.c b/drivers/net/wireless/broadcom/b43legacy/dma.c index 7e2f70c4207c..6869f2bf1bae 100644 --- a/drivers/net/wireless/broadcom/b43legacy/dma.c +++ b/drivers/net/wireless/broadcom/b43legacy/dma.c @@ -213,19 +213,6 @@ return dev->dma.tx_ring1; return ring; } -/* Bcm4301-ring to mac80211-queue mapping */ -static inline int txring_to_priority(struct b43legacy_dmaring *ring) -{ - static const u8 idx_to_prio[] = - { 3, 2, 1, 0, 4, 5, }; - -/*FIXME: have only one queue, for now */ -return 0; - - return idx_to_prio[ring->index]; -} - - static u16 b43legacy_dmacontroller_base(enum b43legacy_dmatype type, int controller_idx) { -- 2.17.1