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 B9A30332ECA; Fri, 17 Oct 2025 15:02:57 +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=1760713377; cv=none; b=bd9Oo+kbxCNtNw9BYRfjU8SE1ANNaHCR4MVAUOnhRswHABl6tdy07HiuJkiRvZqK2Yj8krXAVvpu3U6UFkKaIZZ/yHBESAe1E2pCXWb/xbiNDC44aHT7oVYjbVlrOe1p0gpA4f7/3X0+4T3ZLQA8gOlACtMcSBwU0/kFRRQbDcQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760713377; c=relaxed/simple; bh=ojFIkIltbPl7DyamFJN7vCV6sXhpqMREfMQXSVNpHhs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tgF/qhlvLgmmhB8GJ0pjsFDffSoR89BLh/lOnbHxxrdk/+erpOM3kYFZx+Oekw6Vhh5rzLCYKt2eFTYAyMeNzXNPFA1iv53ldeX6XUt+gW8WTBEnwbF4z4+5f59wnWZsY2UN8p++PjWVHjcAGwG02qPR06GvhHLBsoLfW2SjV4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fBLlViGo; 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="fBLlViGo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44789C4CEE7; Fri, 17 Oct 2025 15:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760713377; bh=ojFIkIltbPl7DyamFJN7vCV6sXhpqMREfMQXSVNpHhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fBLlViGoukZhhyTuB/al/Kduu+WWnyltDQudhUBjBe53eEFdoYJt48mRmWLE2zzGC EZ4UCg70GulVaV9TI0eB+imlTO5DLbet9jFklZ4vYEDf1nlCEHZx9G0hOfiTIexYPi uJek3he8aY3DX8uaE2xMOsbXrOk+y3xBqh4oxCZ0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Wang Jiang , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Sasha Levin Subject: [PATCH 6.1 144/168] PCI: endpoint: Remove surplus return statement from pci_epf_test_clean_dma_chan() Date: Fri, 17 Oct 2025 16:53:43 +0200 Message-ID: <20251017145134.339335782@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145129.000176255@linuxfoundation.org> References: <20251017145129.000176255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wang Jiang [ Upstream commit 9b80bdb10aee04ce7289896e6bdad13e33972636 ] Remove a surplus return statement from the void function that has been added in the commit commit 8353813c88ef ("PCI: endpoint: Enable DMA tests for endpoints with DMA capabilities"). Especially, as an empty return statements at the end of a void functions serve little purpose. This fixes the following checkpatch.pl script warning: WARNING: void function return statements are not generally useful #296: FILE: drivers/pci/endpoint/functions/pci-epf-test.c:296: + return; +} Link: https://lore.kernel.org/r/tencent_F250BEE2A65745A524E2EFE70CF615CA8F06@qq.com Signed-off-by: Wang Jiang [kwilczynski: commit log] Signed-off-by: Krzysztof WilczyƄski Stable-dep-of: 85afa9ea122d ("PCI: endpoint: pci-epf-test: Add NULL check for DMA channels before release") Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/pci/endpoint/functions/pci-epf-test.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/pci/endpoint/functions/pci-epf-test.c +++ b/drivers/pci/endpoint/functions/pci-epf-test.c @@ -291,8 +291,6 @@ static void pci_epf_test_clean_dma_chan( dma_release_channel(epf_test->dma_chan_rx); epf_test->dma_chan_rx = NULL; - - return; } static void pci_epf_test_print_rate(const char *ops, u64 size,