Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2322803rwd; Wed, 14 Jun 2023 00:50:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66RrQKEofbKiTylr7m2aiYWXv7GmNy/CnWpp2Aw79aikvRjV2NqR+hvHgYWymiC+HnBlAN X-Received: by 2002:a17:907:5c1:b0:96f:c46f:d8fe with SMTP id wg1-20020a17090705c100b0096fc46fd8femr15897246ejb.27.1686729046371; Wed, 14 Jun 2023 00:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686729046; cv=none; d=google.com; s=arc-20160816; b=vX3nMHXNOsYMf7ZAzVrTiagvWg8EABGayV057R1C6nmAGYO98epecv2oUgaUFXbW3Z RArRokQPiwOfP+r+MbRE3zTzTkFD8PfrADK5NY1Ihn4i7U6OtrXBx3F2A7bxwGhoM8na x1ToUlGh3bkQgMinEKMKhRorMbJopUq+EAx+FjTczVM067KfFDiNWCwhjD6l7MUFMMb0 M1Ukm72HFo6AN97+kBMOKTtuQHKVR2xi7IjamX41zjdcpGAL5KHOF1ggdlKrKUMxIbBp nMlF9JWax7oiK2GqwbcAoiV9cnCLVBbbwdiU5jJh4+Y4uM5q/04JFTutjSuILe64vz75 EjjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=WID80vYS4EtWRNtZsTHqjGXaq8KNYNCjE5M7eGOJcaY=; b=d/k2z3qN9NJRQ61LqjPDukx/CQP05T5Xk2QIIJB6jaC6kHV86npOM9iD2iZ64LsYXD vonjf4TkfqpJ1+iqUMoU19l21DyEnpJFXexJljKfhyW50kzbajTawRMX9Q9WS7v7tufI 4KFmjMUI2CZ6zzu0Uw49EWo5X3MOpEUnuRlxiwpWno5a9kWHYNxn1ltBmwskQB+ttJpS dOj6+p6/KqenWom0NkA9sweP8/oN2xsyNL/2msIP4ybhfMpwAAsEaY316XdFFcdnimaX GmpS/Mjy+73J+Q3qmaXVbGvR9PN8LkRie2sZnw4s+z+sbOYqAuUFsfBKUaQ6wMltjaMn V3YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=XOTxWAya; 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; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mj8-20020a170906af8800b00977cc53e8fbsi7588459ejb.974.2023.06.14.00.50.29; Wed, 14 Jun 2023 00:50:46 -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=pass header.i=@sipsolutions.net header.s=mail header.b=XOTxWAya; 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; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242895AbjFNHi2 (ORCPT + 61 others); Wed, 14 Jun 2023 03:38:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234592AbjFNHi0 (ORCPT ); Wed, 14 Jun 2023 03:38:26 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BA13E62; Wed, 14 Jun 2023 00:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=WID80vYS4EtWRNtZsTHqjGXaq8KNYNCjE5M7eGOJcaY=; t=1686728305; x=1687937905; b=XOTxWAyaYtdz0GZwilfC+Vey4F321f5F84G/nxkRMRYL9td YmQV6w/Y02TNGLpfKJT9g8zbJjzTYl2TyjgE1SMSlqX4hgGc9klUS2MZTKVws853zyWPET+ikhFH1 Z+3EBcgnYQAvS8Eu5NFP2XGOjOSEE5nmexm0Xq/f+TxkpWegI2HTjsJfFL+clK/ge0h7ZYkbUxFEp TE7HHUVn+puMndIJl+E2pUbGND9UjGQhQF8bJw8Ur6vQH2ijeg9GhU5XAlwGPXTDTyTnm2qVa0YPS HKrK+kbcMf/PHzofiY7D0GFHg4ribj2B3dTxQg6hHW10qpgjTboZh3bMs2vsTj3Q==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1q9L56-005yyv-2C; Wed, 14 Jun 2023 09:38:16 +0200 Message-ID: <02650a6d4c82bce62a9625714540ea75f7b3f571.camel@sipsolutions.net> Subject: Re: [PATCH] wifi: ath9k: remove unneeded variable from ath9k_dump_legacy_btcoex() From: Johannes Berg To: baomingtong001@208suo.com, kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 14 Jun 2023 09:38:15 +0200 In-Reply-To: <695b68601eecd648b7531f2e40561edb@208suo.com> References: <20230614061007.62077-1-luojianhong@cdjrlc.com> <695b68601eecd648b7531f2e40561edb@208suo.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.3 (3.48.3-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On Wed, 2023-06-14 at 14:13 +0800, baomingtong001@208suo.com wrote: > Fix the following coccicheck warning: >=20 > drivers/net/wireless/ath/ath9k/gpio.c:501:5-8: Unneeded variable: "len". >=20 > Signed-off-by: Mingtong Bao Same here. I'm even wondering if there are different people behind this? Also, I'm wondering what you're up to - are you all training or something? I see the same kind of patches that are the same kind of broken from a handful of different people? > --- > drivers/net/wireless/ath/ath9k/gpio.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) >=20 > diff --git a/drivers/net/wireless/ath/ath9k/gpio.c=20 > 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=20 > ath_softc *sc, u8 *buf, u32 size) > { >=20 > struct ath_btcoex *btcoex =3D &sc->btcoex; > - u32 len =3D 0; >=20 > 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); >=20 > - return len; > + return 0; >=20 This won't even build. Please try to understand the code you're modifying before you do. And no, build-testing it (and fixing it) will not result anything better. johannes