Skip to content

Commit 9b80bdb

Browse files
Wang Jiangkwilczynski
Wang Jiang
authored andcommitted
PCI: endpoint: Remove surplus return statement from pci_epf_test_clean_dma_chan()
Remove a surplus return statement from the void function that has been added in the commit commit 8353813 ("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/[email protected] Signed-off-by: Wang Jiang <[email protected]> [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <[email protected]>
1 parent 3fafc38 commit 9b80bdb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/pci/endpoint/functions/pci-epf-test.c

-2
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,6 @@ static void pci_epf_test_clean_dma_chan(struct pci_epf_test *epf_test)
291291

292292
dma_release_channel(epf_test->dma_chan_rx);
293293
epf_test->dma_chan_rx = NULL;
294-
295-
return;
296294
}
297295

298296
static void pci_epf_test_print_rate(struct pci_epf_test *epf_test,

0 commit comments

Comments
 (0)