From patchwork Thu Dec 23 01:14:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Mosberger-Tang X-Patchwork-Id: 527685 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 6A78EC433EF for ; Thu, 23 Dec 2021 01:15:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345816AbhLWBO6 (ORCPT ); Wed, 22 Dec 2021 20:14:58 -0500 Received: from o1.ptr2625.egauge.net ([167.89.112.53]:18342 "EHLO o1.ptr2625.egauge.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345808AbhLWBOW (ORCPT ); Wed, 22 Dec 2021 20:14:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=egauge.net; h=from:subject:in-reply-to:references:mime-version:to:cc: content-transfer-encoding:content-type; s=sgd; bh=6QXkOacECeXoh5s5NBM40R3qV30Md7UBrpN7t6KOPGo=; b=jEsfdGGUqZlOHJ+qiIdYcdiGc8y5cjxsk0E8S4tSYvGbZuBtCtw94/79qfawzR2qfIY0 wpWdYTloK4wUIeW/etD4crH6ouhIR31tqxcM4v+fPpuwNlWiM7+rgXw8NoyFdFBqHPGHhQ xJWxMK7H+5EME/K7ltURYiCX5Eeblq/Ce+21KPeVlycQrQjGiqU6dY7kxiXI1woA1jcEVv nQTaXg0StAaZkcYRq299C8ioYioItUJowXKvNNsNFLLIpTU/Po6UU5Cy4gEqmaaMpMmCAl a53p0GErHe8lV7d8n1E0iIfD7icUZodNdoDyoq96HNJpn9heDL/xlnkVsxXVCLAg== Received: by filterdrecv-75ff7b5ffb-96rhp with SMTP id filterdrecv-75ff7b5ffb-96rhp-1-61C3CD5E-1D 2021-12-23 01:14:06.586363998 +0000 UTC m=+9687226.466870642 Received: from pearl.egauge.net (unknown) by geopod-ismtpd-1-1 (SG) with ESMTP id LDXSjrTJS9u9LcGCsLIr-w Thu, 23 Dec 2021 01:14:06.471 +0000 (UTC) Received: by pearl.egauge.net (Postfix, from userid 1000) id 4AE897013D2; Wed, 22 Dec 2021 18:14:05 -0700 (MST) From: David Mosberger-Tang Subject: [PATCH v2 21/50] wilc1000: declare read-only ac_preserve_ratio as static and const Date: Thu, 23 Dec 2021 01:14:06 +0000 (UTC) Message-Id: <20211223011358.4031459-22-davidm@egauge.net> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211223011358.4031459-1-davidm@egauge.net> References: <20211223011358.4031459-1-davidm@egauge.net> MIME-Version: 1.0 X-SG-EID: +kMxBqj35EdRUKoy8diX1j4AXmPtd302oan+iXZuF8m2Nw4HRW2irNspffT/khET6RJF6+Prbl0h/EtF1rRLvLZxHI1WTv+apMggTxpW6dVO07dWMAWJoY1Bu46DX+LwUkE7cVHmQvQrgtXMbB8mrMynCaXw8lkkNDKys91eMLBac9IddjmYlgTgbm9AsniqUhadcZVMYeMvQBwKO+v/v5u5Zau8MJlPTFNQhZ3v6qjLYNqrvlUcKDL2D0IMBn0b6WeXrcu64JXHOOt/pp7QUg== To: Ajay Singh Cc: Claudiu Beznea , Kalle Valo , "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, David Mosberger-Tang X-Entity-ID: Xg4JGAcGrJFIz2kDG9eoaQ== Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Apart from being slightly more efficient, this makes the code easier to follow. Signed-off-by: David Mosberger-Tang --- drivers/net/wireless/microchip/wilc1000/wlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/microchip/wilc1000/wlan.c b/drivers/net/wireless/microchip/wilc1000/wlan.c index dc6608390591c..bdc31a4fd0f6a 100644 --- a/drivers/net/wireless/microchip/wilc1000/wlan.c +++ b/drivers/net/wireless/microchip/wilc1000/wlan.c @@ -636,8 +636,8 @@ static int fill_vmm_table(const struct wilc *wilc, int i; u8 k, ac; u32 sum; - u8 ac_preserve_ratio[NQUEUES] = {1, 1, 1, 1}; - u8 *num_pkts_to_add; + static const u8 ac_preserve_ratio[NQUEUES] = {1, 1, 1, 1}; + const u8 *num_pkts_to_add; bool ac_exist = 0; int vmm_sz = 0; struct sk_buff *tqe_q[NQUEUES];