Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2241235rwd; Tue, 13 Jun 2023 23:18:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TYMv8TmY+2lUtf2gYyjowXTCk5vDP7yobP/K5jvbe6TxjjyWPcLZkPM9zBmWMxOOUnDJW X-Received: by 2002:a05:6808:1382:b0:39c:7d2a:435c with SMTP id c2-20020a056808138200b0039c7d2a435cmr11144866oiw.6.1686723501597; Tue, 13 Jun 2023 23:18:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686723501; cv=none; d=google.com; s=arc-20160816; b=zUJtoHbHIGX3WgD3TiSkhYUJX+jYNxthYcrF/SgAQXy5HF330npCttYVxPXo0x3o+w JRzJOtD01bsLK72LWY567E0EG89FQOm4lsacP8KBmjRzCb1G27aPL7ohtR6zhct8O6hZ R7ldgqvkcaqlEzzL3TMyQtfXyeLzLQx827d9Jxdb9GTUvmXKOSYQshurgZX0DxdYPcjr +Sg1x0orRxAkkku4hxiVepDc3+HfrLLyEZHEJuUAC45q+j5xIKsAbwAuiwO9g2wRqPiV B4SfAEFXn9Upo6ch9m4NnI0apoYCUD3RpY3Ww37qw2rUpcyJhYNuqWgNnZwbpNvKkCrx JZRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=92YT/OLDDR5+c+hnOOLGnSIjKYG2gZ3EUnvOll2h0kM=; b=loc5Tdmi831xkkH232dvsDc5eHp2LSZ25/J/1fEUMYXzpiJSyqVXcVEfjHl5oQWSqe yYYrPWvA/d4TpZqPKk6pIrPwz3vUrGM69N9F6jPL3Mbznr8gQKBP7cJS9AYHAt7cO9Gg Accv/RFCclR2PDNqg2iQaMycz5dOv3Ivcrcd7GwlBSy3XoghWmEH1aV1ptQ0oGvShF2t 43SwCn1chtmKgeJHJzN9C4tWq2HmQsdoPGjf3FTYZ65zuEdNfu/hh6m1kSgoJAKROPVd lzPiAUcDaW9aG6aj4qLQigpiwQWWpIokjCw9mvKpsekwMctGslS9XSO1bHpFvX6Xd/Ka DHZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=YuV5NN3q; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j1-20020a17090a588100b002500dd30da9si10303100pji.6.2023.06.13.23.18.13; Tue, 13 Jun 2023 23:18:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=YuV5NN3q; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243037AbjFNGNo (ORCPT + 61 others); 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 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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(-) 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; } int ath9k_dump_btcoex(struct ath_softc *sc, u8 *buf, u32 size)