From patchwork Wed Apr 1 11:03:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 221501 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFE89C2D0F1 for ; Wed, 1 Apr 2020 11:08:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 956C02082F for ; Wed, 1 Apr 2020 11:08:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.b="fiaS0vLE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732767AbgDALIK (ORCPT ); Wed, 1 Apr 2020 07:08:10 -0400 Received: from mail-bn7nam10on2067.outbound.protection.outlook.com ([40.107.92.67]:6024 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732299AbgDALEx (ORCPT ); Wed, 1 Apr 2020 07:04:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pk/2UwYSZf0B50QLgcFDU0VB/yRWHdyhG4+uJenrjkaOsuXMZ8AtCSQg3OYOIvEBCe7vVePE35QFXB15uFCfc1AiV2+eDSox8W5+laAMZZbm+k95mgADI2oQJU04u3embjJ2k5ac9P/hdbo0syFg+iWr+3eu9Qh/ReELxGi0F2NvraS51mugW4ShHL0/dzyOOmzY8RL46QO8Mv2YFb7jx1nj7z5/21JnypqeCeI5xEQLVdnOaDJebdpFmV0BSSMY6rvdVfTjJhiMteI7vBnd9WAf3bk49TCnGveBGEorbtr+fAId+nTiHO6suLjkZPbeJIM0Y/mVOm+squc3b4s1kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=elWr9kqCLKIQtMXJG2yerf++exc0/sxLlm3itODnK0Q=; b=DMWbS7RN5I2X/Lv/v6tHn5HbbKjYWMXTyi9ZQrdATmcdzsxbqjgP4TE4kqEYJF6Iqyg5WWIboayJE0zeg3KETHXiDHQXZE5NvhOPAo/LAsKfgV9b8xUerDK0PDUkrIJchLNMyGYJXhMcFuKI9Vh0qfJrqrzUc8bCnX8nBdzweyvo4k7xKAjZEn3GSppexxbrc/TldQDVV6Ce26Ab8qXe49eqie/uU2Auv0j98FIkGGkpAJ6Yi7k9gpHmmMWQ+5R+1BOPaVjhxgTWEOFwyNKk9MipKpsknCIFPvbTEDVPtx2HDN+UcrqHMVP48If3KxdB/ruugMXEDHPyjgG9sB0LVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=elWr9kqCLKIQtMXJG2yerf++exc0/sxLlm3itODnK0Q=; b=fiaS0vLEt0Y77Ublwuc63p1Wv5lwA9QLjSpseagDXy1btpNYjMvqLh72E9X8+3lVkiJwGYWgP+Ier0oj+L/wZmmG8BZiJ+R+OlAvUqYq7n6P7BydhezDcLl7I/yxHtPdjyDO+htE2vXTgxR9Xp7f7E1TMAkn9eHuDaLA9FklF9A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerome.Pouiller@silabs.com; Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB4285.namprd11.prod.outlook.com (2603:10b6:208:191::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20; Wed, 1 Apr 2020 11:04:32 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::ade4:5702:1c8b:a2b3]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::ade4:5702:1c8b:a2b3%7]) with mapi id 15.20.2856.019; Wed, 1 Apr 2020 11:04:32 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 06/32] staging: wfx: drop useless queue_id field Date: Wed, 1 Apr 2020 13:03:39 +0200 Message-Id: <20200401110405.80282-7-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200401110405.80282-1-Jerome.Pouiller@silabs.com> References: <20200401110405.80282-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0501CA0156.namprd05.prod.outlook.com (2603:10b6:803:2c::34) To MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-42.silabs.com (2a01:e35:2435:66a0:1265:30ff:fefd:6e7f) by SN4PR0501CA0156.namprd05.prod.outlook.com (2603:10b6:803:2c::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.9 via Frontend Transport; Wed, 1 Apr 2020 11:04:30 +0000 X-Mailer: git-send-email 2.25.1 X-Originating-IP: [2a01:e35:2435:66a0:1265:30ff:fefd:6e7f] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8cb5b941-49c3-45f5-a747-08d7d62c74c6 X-MS-TrafficTypeDiagnostic: MN2PR11MB4285: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:517; X-Forefront-PRVS: 03607C04F0 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(136003)(366004)(346002)(376002)(39850400004)(396003)(7696005)(8676002)(1076003)(16526019)(186003)(5660300002)(86362001)(4326008)(66574012)(52116002)(478600001)(66946007)(66476007)(54906003)(36756003)(8936002)(316002)(81156014)(6486002)(2906002)(66556008)(107886003)(81166006)(2616005); DIR:OUT; SFP:1101; Received-SPF: None (protection.outlook.com: silabs.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FjUcVrc19b77UE/LiC27DwDMgUwvkJbR+aRlrppbIQWcwLFhBWuaaUA1RkuvGH69gAHm7gDeuHBBEeNLQfJybiMimVOvP2U6d+PZ4frMwvto3CT50JxQNGAMSxngPKg3fOmwpghaYDjnrzMuJTgnoPiCFJxvnwoCkCk+o40exdj8KZFVi99L2X8jDqOzCARVb4fGvxsjzovj7v5CYNzKSpMMsZSXihQ/9YZMgOSPgichLuBmJ38DMwWvUavcPMDWjrRC2IlzwltgwZPD+c+mG9UYFTWmMLEEMDrvNjmrYr5vuvpYDoYhyfEvYr1EhWgym3iMEinPWDdkRyOcoV2iT+WeNDb354AXmPlu8gfhtQ1jl4E6PyQEsUofVJzU+3f99VZ4eoHSCTgptB73wq8/eRpSNT1743ieSAHpHbKF4gJzclQItXNmk3faQtTUE+dK X-MS-Exchange-AntiSpam-MessageData: 1fVJeU1LCqREDUVC00LynFiDFG/9UjDT2vtZteXmP4A8ahTBmJ9cLlfAoRclG5MpXYi3CKxytpP66u94/lg9UhJxACE+EmVEv/Dl69W5tLktn+C/SkWIEPR+c8YVIEmUk94lq3cyq2HXVuk5DkS+6rFrOBE0VO/nEctfBs5u7A2Fxf0yqpdrXTy/E9eRq+g2JFXAESEUAE7M8RxNMtW9+g== X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8cb5b941-49c3-45f5-a747-08d7d62c74c6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2020 11:04:32.4984 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tLrsWnjKSwbpKVtnFYVZgJqRtpll81G5EzGF0ybC0YPNksrA6tFN4GZ2c3wQYeoJclR86mwwOmFXlTV2Y0oNSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4285 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Jérôme Pouiller The field queue_id is no more used. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/queue.c | 4 +--- drivers/staging/wfx/queue.h | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/wfx/queue.c b/drivers/staging/wfx/queue.c index 712ac783514b..1df3b6f28c67 100644 --- a/drivers/staging/wfx/queue.c +++ b/drivers/staging/wfx/queue.c @@ -134,10 +134,8 @@ void wfx_tx_queues_init(struct wfx_dev *wdev) skb_queue_head_init(&wdev->tx_queue_stats.pending); init_waitqueue_head(&wdev->tx_queue_stats.wait_link_id_empty); - for (i = 0; i < IEEE80211_NUM_ACS; ++i) { - wdev->tx_queue[i].queue_id = i; + for (i = 0; i < IEEE80211_NUM_ACS; ++i) skb_queue_head_init(&wdev->tx_queue[i].queue); - } } void wfx_tx_queues_deinit(struct wfx_dev *wdev) diff --git a/drivers/staging/wfx/queue.h b/drivers/staging/wfx/queue.h index 88ee2bf56d11..2284fa64b625 100644 --- a/drivers/staging/wfx/queue.h +++ b/drivers/staging/wfx/queue.h @@ -24,7 +24,6 @@ struct wfx_vif; struct wfx_queue { struct sk_buff_head queue; int link_map_cache[WFX_LINK_ID_MAX]; - u8 queue_id; }; struct wfx_queue_stats {