Re: [PATCH v2] PCI: endpoint: Remove surplus return statement from pci_epf_test_clean_dma_chan()
From: Krzysztof Wilczyński
Date: Tue Nov 05 2024 - 04:19:15 EST
Hello,
> 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.
>
> Otherwise, a warning will be issued when building the kernel with W=1:
>
> 296: FILE: ./drivers/pci/endpoint/functions/pci-epf-test.c:296:
> return;
Applied to endpoint, thank you!
[01/01] PCI: endpoint: Remove surplus return statement from pci_epf_test_clean_dma_chan()
https://git.kernel.org/pci/pci/c/06f893055382
Krzysztof