From patchwork Wed Jun 14 06:13:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: baomingtong001@208suo.com X-Patchwork-Id: 693644 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 98484EB64D8 for ; Wed, 14 Jun 2023 06:13:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243037AbjFNGNo (ORCPT ); Wed, 14 Jun 2023 02:13:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234356AbjFNGNn (ORCPT ); Wed, 14 Jun 2023 02:13:43 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DC791739 for ; Tue, 13 Jun 2023 23:13:40 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4Qgw8x3QTFzBQJYd for ; Wed, 14 Jun 2023 14:13:37 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1686723217; x=1689315218; bh=PwxsVOAzDDB8Ivc12dEAldwl7Yl B/uooNnvQoX6R+iY=; b=YuV5NN3qO2AE+bdZH6AFy7NlcTu79SFS8vnsOOG4KhI Ex/3tKTa0tkTaf/h6uoTEMxmHvVqIQADwGtABARUWrEADD/7ldgA1BjhK/2MH3gP XwP0mITBUmveB2Dm4AFS1UmBkeKFuxLwqmgR6aakmTUz4xwUJHdv2vJD4IsmYMW6 GD2ixj/NC4QWGL/wGuoA+QOcHtJH5lMzSCDtKxsYp/NnX8eoLS8DQiVFV+8f8s+f qgfpiqtrM8Yhib110ZulsZ/7CPRaIc1MGWl+QTy1trs9x2OxHGxUGQxyHUr0jIom /27Zylr4MeJD9rtdOQIqBT5k9qYbUUAIefhxo68ln7w== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dhLaMLfLGHtl for ; Wed, 14 Jun 2023 14:13:37 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4Qgw8x276rzBJLB3; Wed, 14 Jun 2023 14:13:37 +0800 (CST) MIME-Version: 1.0 Date: Wed, 14 Jun 2023 14:13:37 +0800 From: baomingtong001@208suo.com To: kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] wifi: ath9k: remove unneeded variable from ath9k_dump_legacy_btcoex() In-Reply-To: <20230614061007.62077-1-luojianhong@cdjrlc.com> References: <20230614061007.62077-1-luojianhong@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <695b68601eecd648b7531f2e40561edb@208suo.com> X-Sender: baomingtong001@208suo.com Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix the following coccicheck warning: drivers/net/wireless/ath/ath9k/gpio.c:501:5-8: Unneeded variable: "len". Signed-off-by: Mingtong Bao --- drivers/net/wireless/ath/ath9k/gpio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) int ath9k_dump_btcoex(struct ath_softc *sc, u8 *buf, u32 size) diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c index b457e52dd365..f3d1bc02e633 100644 --- a/drivers/net/wireless/ath/ath9k/gpio.c +++ b/drivers/net/wireless/ath/ath9k/gpio.c @@ -498,14 +498,13 @@ static int ath9k_dump_legacy_btcoex(struct ath_softc *sc, u8 *buf, u32 size) { struct ath_btcoex *btcoex = &sc->btcoex; - u32 len = 0; ATH_DUMP_BTCOEX("Stomp Type", btcoex->bt_stomp_type); ATH_DUMP_BTCOEX("BTCoex Period (msec)", btcoex->btcoex_period); ATH_DUMP_BTCOEX("Duty Cycle", btcoex->duty_cycle); ATH_DUMP_BTCOEX("BT Wait time", btcoex->bt_wait_time); - return len; + return 0; }