Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2649984lqt; Mon, 22 Apr 2024 18:21:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVD/7EJu/ZWgf2g7jmtXILi6ULjCN0Pjwi+CtLahQUOJgAQhAdygPFH/Ic6xLtD+/YSEnHg122ppCZNjwk0AAiNGDQzbIUHSFXgXT3yw== X-Google-Smtp-Source: AGHT+IEDSlpUJP9EAui3wRUg8eiaD8zBcDww7xD4BXZSLTW9OA8Cv3CzJAOlEGkdEz9s6I+8+Wgv X-Received: by 2002:a17:90a:4594:b0:2ad:eb55:2e39 with SMTP id v20-20020a17090a459400b002adeb552e39mr4368545pjg.49.1713835291766; Mon, 22 Apr 2024 18:21:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713835291; cv=pass; d=google.com; s=arc-20160816; b=EfLYEiwdEBUKnp3oboWed9lZfGTw8t50DVyc8hnP4oHvUfrvTEgeLEfujzGC4oLfyN 8stFIE/uzqvdIsZxbd7ndfDvN7ZmWBOhs2tqsoC5YZiw27Bg2CCcqbcp1jrBVx0soz4p NxpPh3r+G0WXcFjnWlcgWTijhb/IZAJn86HiMyP+Aa+cfYmz9aILyEqB+6kYDOvfUhsg 1L1XZBdHPoFoeNcLurikqmDIcfkK0lPpOUQuAvvmkiNNIzwTYUo0q+zXDB4vB3TdXpXL JuQshjVGf2Clai8obTCAwqKwA1NRPNSQXqB8k15RifvFJqwKmDzz6k3Tz+IPXJi7CnHA BLYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:cc:to:content-language :subject:user-agent:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:date:message-id; bh=yps+59rDIeSan4U3LUH0/26iRth9vCgv8xrZZa/VsKg=; fh=FaF6uCgdTywCsGcA57Q/sA60PfmiRv7xXrN7TY3oal0=; b=VQHLuElVOasJaY8o1C78kayPweVNNrM4gbt53PsuC0SzKsl4xwZfHV410zBZqh8ncQ gVJcW1JXz4J0RivR/e5AxBs4o4Gw4pIOD/LKMp6UeOMwKRqxqdBSmPeW0AF0o7rYvwH6 hZbGnhefVtWNfmZeiHXnZw0OWAk/ixv7Ud0zOHUtUvlPoO/myF7It6VDb7lEBu6LUKle BtLco0JHhGH3wiqNLaum9dNshOAonJtU/uY7RJhgU2PL1/YAqArGY4f2QhgC8teRte2f L3/Q0jcFLEFfC3rUwnaTIrGagABQ/2usGdtgBKRpgDnTK8vM7V0lWSfdLCx6FsAMdX8y HZLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-wireless+bounces-6697-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6697-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u18-20020a17090ae01200b002a5202f7b6asi10260712pjy.180.2024.04.22.18.21.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 18:21:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6697-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-wireless+bounces-6697-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6697-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CFC9D284B9E for ; Tue, 23 Apr 2024 01:21:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CA20125C0; Tue, 23 Apr 2024 01:21:27 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id C2BB710949; Tue, 23 Apr 2024 01:21:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713835286; cv=none; b=D4TNkmIXOKSfoN5OYWll78fN02EgJ4dtlPBkUp2k7QXmSlDoDR/rzzKTEkMoRjpaGuppsUpDvGbepq9+b991O7sBaTLRX9uWiZkIwltDLTwIwW6TsuQR2S5Cz2cUHBEq9N5FaZ8zYFEnGaf/faTHvjp6KQtlfWdM6MEevc+1SMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713835286; c=relaxed/simple; bh=VTGFvad64cVAJMNUZ8WORJx7AJhyjOaOK5Po0AOfSHU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:In-Reply-To: Content-Type; b=VWKAzWYQwBifHktcMKooq1WUAB6y7FLbXjBINhRvVCzHHXmFrTHXy+bQ4ZeLMCQrb75F83blIspszuISgkGz3lOe/pCKWcuczxHp75nGbiJK3pA36vGXzI2wHv8IN9mNx47dM1Z/1ikmuXCQvJNWBV3f5bMNnVR8k6oFA6VNvqg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from [172.30.11.106] (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPSA id E0A936083C8B3; Tue, 23 Apr 2024 09:21:11 +0800 (CST) Message-ID: <3621bf61-732a-c2bc-c135-fbba299f8f57@nfschina.com> Date: Tue, 23 Apr 2024 09:21:11 +0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH wireless v2] wifi: ath10k: Fix an error code problem in ath10k_dbg_sta_write_peer_debug_trigger() Content-Language: en-US To: Kalle Valo 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 X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui In-Reply-To: <878r15j3bt.fsf@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/4/22 14:53, Kalle Valo wrote: > 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. > Sorry for this, thanks for your help! Su Hui