From mboxrd@z Thu Jan 1 00:00:00 1970 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 A7D40145331; Thu, 13 Jun 2024 12:14:34 +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=1718280874; cv=none; b=oF4tcf6J84RjnS03ebX/qxOE/U33evKwqM+6eietJY2JeyAVgD2vFHN3Fz5Dv/0XIzM/xRieHgSCWtn1vpKXLJQZLQknb/TWVEviMEa799DjRBZxRT0gSJw6LYG11Sc/Q8l4Stzm/tvH91KHRXVi0HDnUT/2MED5l7OZYFNyQVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718280874; c=relaxed/simple; bh=fmwQnHT9O4Gm4znUJtNI5FUN55TPf9D+06OeUcSV75s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PahwcxPBB2WapH6B/dlnNZZdHC97z0AO7Fk8IdnV8iA5JzqxGEoS/maZeCJN8+Wbnu+sXFLR7l0auQxapQrtR9Lzjh1bSL+lzqEexKacF46JTxtTzrt8YJoVOVEUX+gz+IaDI1Mh5ofG6BhUtJTrImA02ZHKPlm4+bTAHppTjdc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=heUDWp4G; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="heUDWp4G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAEC9C2BBFC; Thu, 13 Jun 2024 12:14:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718280874; bh=fmwQnHT9O4Gm4znUJtNI5FUN55TPf9D+06OeUcSV75s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=heUDWp4GnxXR33j6Le2CERsgXgb/mKGdOHPttM2dC2H8QnUQCdLoYzMVucjrH5kys iZuIHbay2vK2GsehcnzA5X6Dwl+A89hms8jxAWF39APVTd1qKs+IiDdVNg1gI5lQet Lkit+3LU3wo+LBLJ+alVLgXfEpt+Huo4XIh/YLXs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Su Hui , Jeff Johnson , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 062/317] wifi: ath10k: Fix an error code problem in ath10k_dbg_sta_write_peer_debug_trigger() Date: Thu, 13 Jun 2024 13:31:20 +0200 Message-ID: <20240613113249.948494656@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113247.525431100@linuxfoundation.org> References: <20240613113247.525431100@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Su Hui [ Upstream commit c511a9c12674d246916bb16c479d496b76983193 ] Clang Static Checker (scan-build) warns: 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. Fixes: ee8b08a1be82 ("ath10k: add debugfs support to get per peer tids log via tracing") Signed-off-by: Su Hui Acked-by: Jeff Johnson Signed-off-by: Kalle Valo Link: https://msgid.link/20240422034243.938962-1-suhui@nfschina.com Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/debugfs_sta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/debugfs_sta.c b/drivers/net/wireless/ath/ath10k/debugfs_sta.c index 367539f2c3700..f7912c72cba34 100644 --- a/drivers/net/wireless/ath/ath10k/debugfs_sta.c +++ b/drivers/net/wireless/ath/ath10k/debugfs_sta.c @@ -438,7 +438,7 @@ ath10k_dbg_sta_write_peer_debug_trigger(struct file *file, } out: mutex_unlock(&ar->conf_mutex); - return count; + return ret ?: count; } static const struct file_operations fops_peer_debug_trigger = { -- 2.43.0