Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2073429lqt; Sun, 21 Apr 2024 23:53:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrGrBDQzEHuTxJ+gloUHBj381RjThAyobeKZhZ5x/+kl0ZokqTN/eAaEGzcafqRT8uHUrSaKjsfdTnW0uYcauGJNRKI+0tlIPW73y9Rg== X-Google-Smtp-Source: AGHT+IEboLGq4Bts4jsgZT+v01OfQKnFbvWIZISLI57eg7VXYIkbewIkEkI3C/bt405sWd1mwbG+ X-Received: by 2002:a05:620a:984:b0:789:da81:8f2f with SMTP id x4-20020a05620a098400b00789da818f2fmr9871816qkx.26.1713768825093; Sun, 21 Apr 2024 23:53:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713768825; cv=pass; d=google.com; s=arc-20160816; b=XkCB5Yhy8MInxvhPupmzQSmmlSy0rYINZ7fAYLzrzyGpW3QpaEUjvvGDFTlbsnN2pG 9WufSgdvP+J2mjWEwpJbc6F/yLo96ZAH27P7XDbIz3/P5bhyP67+0xTXhOz097DwcrIZ QMwHxRPNCxtBofX8IfUHZmVR0At7m6S6MkdHLQDRLK0wV0bGWuWIdHgLM2NzKgz2xtbQ 3rfcGkzUn6KDR079F+GtIbVw5+rnOTU5Q016GdTekM5cSFsoeXpf72dOuEnTSz+hssCz iULFqwTWbwFjejQFb70mJsUt+HtIzu8M3UN7/QiZJ3QoREJkUKEDtSbVD/wS5ZKIFy9C sM+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=8bhQnAt10FkroavO7Qz6LO+wtoG2v0IJuQhquYK/pqc=; fh=h9ZWCAASKQJkToVIfB0qQ9TdZrscI3nAxXneqGMNc3c=; b=d46frUGSKYrZYGprPPiL6BAbN8m1ZxoXVmf2oHvc1L9N+11nj10TLw+Om/Sb1G4EMi dfdly1l4CiBsYJt8XqsEyNBWUZ2JyYrxii6fuN7HCgg3JLw5EjynSaO6WKMtKyMEjiif +/t33LlNhRw3hlA25oHUf+yKG5dX02mGyj9Vo55bjzZficFPB2eDYrhBOP4n+WBbFmxN 8iSU9tK25dNazSUIGA8XF40aN/opqU2ZpWWmBM0nqEFJwk/m+wboeWb+38GBZW2WXKl9 g/ixmNQqwy6QsAg324Bv595Ulae+PQWBRVn/Ln42CHng6pODlISYNz4fmOXPN7h78vIC CaCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cui0MaRt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id wa13-20020a05620a4d0d00b0078ede2c40d0si9696881qkn.740.2024.04.21.23.53.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 23:53:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cui0MaRt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C44DE1C20BFD for ; Mon, 22 Apr 2024 06:53:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D94FE482C6; Mon, 22 Apr 2024 06:53:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Cui0MaRt" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4DB23BBCC; Mon, 22 Apr 2024 06:53:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713768811; cv=none; b=KcJlMJCu1LsocF2HiDdtAkBHMSw+lJuutQq9qCNI6GBuQGwrUovvqfcgrDxrxCIEUyp6FJuKrYeHkZusyx3Iz5TFZbs7GoPTLER3MnPxql6edtAKGGbjfBU7/ocFAFs20ul8z75xGT15oCGUgUW+hruowuKSgb/m/ytzMh9n+Eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713768811; c=relaxed/simple; bh=BQ5lv0ySOhngt6oiBldECYAUh+70HIqFEVh7ZrhT2SU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=J1D5ORC2uPtrk8PDmBcgBUYh4mEtKiyag31WWD38JhllUdzcLyumqSEAUdeb6PJ5jkkyFCp8CLEBAMaDMetkSJO1iz5PLWd4VQ8jiwcE1FD8atXDlrMDnrzQwKpZdIPgDkqRGHdjtgrLA4yzXdw8dNRzTLw9gmwR2ze7SE3+cpM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Cui0MaRt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF79BC116B1; Mon, 22 Apr 2024 06:53:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713768810; bh=BQ5lv0ySOhngt6oiBldECYAUh+70HIqFEVh7ZrhT2SU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Cui0MaRtDe2xqQ3NEwHoiaqNEPh9QZrdEiUYskHiBgjzUxclmHsmCP6ag5nGU84bM 3b5x6NxZdfPeMvegaO7mkU3QgMxZobmAm2oln8xkQM/Oy8/+Oucf2IgnmG/TyB/Wn7 iQdcRWT2PJLWTmUDU6bWMGk2/fV7G6TSzKe1IoWdNnlo3yMEBweewQVG1KrgHX1Sf7 td471aBOw8drLYvbX6PKTOaVitHwsw9ADZoAa5l91FQdSWkWxrU3MP5yynDhnSBkIW O8yLZoEwnTC68ASfkWblx7Spb7MGUF+NSjqs1Yv/Qw45PpGMdE8ky27RWo8/FkcZUT on4t2PTh/wcSQ== From: Kalle Valo To: Su Hui Cc: quic_jjohnson@quicinc.com, jjohnson@kernel.org, nathan@kernel.org, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com, c_mkenna@qti.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, kernel-janitors@vger.kernel.org Subject: Re: [PATCH wireless v2] wifi: ath10k: Fix an error code problem in ath10k_dbg_sta_write_peer_debug_trigger() References: <20240422034243.938962-1-suhui@nfschina.com> Date: Mon, 22 Apr 2024 09:53:26 +0300 In-Reply-To: <20240422034243.938962-1-suhui@nfschina.com> (Su Hui's message of "Mon, 22 Apr 2024 11:42:44 +0800") Message-ID: <878r15j3bt.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Su Hui writes: > Clang Static Checker (scan-build) Warning: > drivers/net/wireless/ath/ath10k/debugfs_sta.c:line 429, column 3 > Value stored to 'ret' is never read. > > Return 'ret' rather than 'count' when 'ret' stores an error code. > By the way, remove some useless code. > > Fixes: ee8b08a1be82 ("ath10k: add debugfs support to get per peer tids log via tracing") > Signed-off-by: Su Hui > --- > v2: > - remove the initializer change. > > drivers/net/wireless/ath/ath10k/debugfs_sta.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath10k/debugfs_sta.c b/drivers/net/wireless/ath/ath10k/debugfs_sta.c > index 394bf3c32abf..c1198e9027ae 100644 > --- a/drivers/net/wireless/ath/ath10k/debugfs_sta.c > +++ b/drivers/net/wireless/ath/ath10k/debugfs_sta.c > @@ -432,14 +432,12 @@ ath10k_dbg_sta_write_peer_debug_trigger(struct file *file, > > ret = ath10k_wmi_peer_set_param(ar, arsta->arvif->vdev_id, sta->addr, > ar->wmi.peer_param->debug, peer_debug_trigger); > - if (ret) { > + if (ret) > ath10k_warn(ar, "failed to set param to trigger peer tid logs for station ret: %d\n", > ret); > - goto out; > - } Minimal changes with one logical change per patch, please. I'll remove this part in the pending branch. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches