Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2102101rwd; Tue, 13 Jun 2023 20:22:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5EvH5m8YtGD4nMTmP/0wawrDZL1K+Z8OpDvKLRko53wm3PKs0N4YH3MsmAjktqsemLQIFV X-Received: by 2002:a17:903:1c1:b0:1b4:5697:d9a8 with SMTP id e1-20020a17090301c100b001b45697d9a8mr1330476plh.24.1686712965964; Tue, 13 Jun 2023 20:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686712965; cv=none; d=google.com; s=arc-20160816; b=rStPiaUt2B5QlKI+xxTeMShquVfLPl3AxGrdUOYXdBcYjcUmIyrAZDKcvFCtcwtkGj Ip8Q66cLGBjVg8hVmxwwfB/ylp/TGKpVqMIJ5oaEnW7lIbzF2CW7dU1irmfEtuaSMfBU fDBiHpF43otMKqvs8WQt+y/8Aq24+yrAopF0I4jHKNuQ+ft2aaXWF0VBe58BsvQxxVoo WuC7AM5dBg9O/IkZxZv8aXTp/rUZIA5GepnuMzVIvrv893t20JtPYpjWnP2aj2NOljnO GWk6HYjIYK4Z1F6c4JhpNdIOHbaNqQzSsdoBLAyM+c97SD6VSHarEAYsvdIvSeWGNIt7 CUYQ== 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=xVMahalCSbz4RlY7cCx2gdPCzRRNBvhSDruTtJaDaagYOYs2NKsu6Mvrs3gdbVj9fM NJhfZmdx1gCN/vB5LICDOa+EuNHJEW6hm4EcnPOqGnELADIKkXPH5pBYOcl5RW/0IkOd P83KhHmeQ9R6XwGoPOaqxgEkGew3wtCuNXX0RyQckd1SUCSOaW4/StKPziFXWAMkzRvN gONIwOzSKUe2MzlC9c2Rsc0kS9JSFL/lwct7OhxvBm7Wpx5HhRDj+g6g3oDKFvCfR+8Q ns+WpMDZKlh4uehV91AzSX2lA5T96sqMJbFLaDbnqCJJv0ICZ9joGt10nOlUCQSn4P/x odmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=kUxljA41; 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 w9-20020a170902c78900b001b06707ac12si5250325pla.49.2023.06.13.20.22.36; Tue, 13 Jun 2023 20:22:45 -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=kUxljA41; 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 S242303AbjFNDJP (ORCPT + 61 others); Tue, 13 Jun 2023 23:09:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233436AbjFNDJN (ORCPT ); Tue, 13 Jun 2023 23:09:13 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AEA5CD for ; Tue, 13 Jun 2023 20:09:11 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4Qgr442Bq8zBJL9m for ; Wed, 14 Jun 2023 11:09:08 +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=1686712148; x=1689304149; bh=PwxsVOAzDDB8Ivc12dEAldwl7Yl B/uooNnvQoX6R+iY=; b=kUxljA41uAdGJMMUiWBePOjN/b+HHAezKTVq9ep205+ sLxrXCmc+Z6J4E5hou87nSPcypYJFzsd5YSSohZSI1QGlwZMEncmmvBfuScxgLOK NIx6XvkGdf+HGIoMnkMj2qMaqEkGUUbVLlwV8DytsHIkhpSGiOAsZYOBYxd4AoOc z7s7v8sxHFwMQX1k/ePtTaGkBaxJnxgHOw7Xl2uoRG0zwtgyFg1h+nTrSUtbVVVh A5YkHcb1VONQTRVz/PZJ8wIYDRW6CB01hZt/q70EDVyt6DKQxWlRutDu3stXEBpI TtEgGdGJDt59mIqAr2pwYzFL4xf0Ha2g5P9CKyjfRlg== 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 UyaZHtx1Q4ki for ; Wed, 14 Jun 2023 11:09:08 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4Qgr435LQkzBJ9pH; Wed, 14 Jun 2023 11:09:07 +0800 (CST) MIME-Version: 1.0 Date: Wed, 14 Jun 2023 11:09:07 +0800 From: baomingtong001@208suo.com To: toke@toke.dk, kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ath: Remove unneeded variable In-Reply-To: References: <20230613093757.5380-1-luojianhong@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <209fbe59213d89c3e7e3a5fe6030e19e@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)