summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Jiang <jiangwang@kylinos.cn>2025-10-14 12:14:05 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-19 16:23:20 +0200
commit3477a98c1ab60ca85da205020fb095721a166a59 (patch)
treeb3199b255cebf4eea9f7a68bea4fcc3891d8216c
parent21169f469e6bf8ca607161342113d80cc806f8c3 (diff)
downloadlinux-3477a98c1ab60ca85da205020fb095721a166a59.tar.gz
linux-3477a98c1ab60ca85da205020fb095721a166a59.tar.bz2
linux-3477a98c1ab60ca85da205020fb095721a166a59.zip
PCI: endpoint: Remove surplus return statement from pci_epf_test_clean_dma_chan()
[ 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 <jiangwang@kylinos.cn> [kwilczynski: commit log] Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org> Stable-dep-of: 85afa9ea122d ("PCI: endpoint: pci-epf-test: Add NULL check for DMA channels before release") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/pci/endpoint/functions/pci-epf-test.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c
index bcf4f2ca82b3..4ebc49f1a467 100644
--- 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(struct pci_epf_test *epf_test)
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,