Re: [PATCH v3 05/11] dmaengine: switchtec-dma: make switchtec_dma_chans_release() void
Frank Li <[email protected]> Mon, 27 Jul 2026 16:54:11 -0400
| Newsgroups | org.kernel.vger.dmaengine,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <amfFc4JquytfjGRZ@lizhi-Precision-Tower-5810> |
On Mon, Jul 27, 2026 at 12:15:20PM -0600, Logan Gunthorpe wrote: > It always returned 0, and no caller checked it. > Nit: s/It/switchtec_dma_chans_release() Reviewed-by: Frank Li <[email protected]> > Signed-off-by: Logan Gunthorpe <[email protected]> > --- > drivers/dma/switchtec_dma.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/dma/switchtec_dma.c b/drivers/dma/switchtec_dma.c > index 13efd4189bbb..c752a1b05871 100644 > --- a/drivers/dma/switchtec_dma.c > +++ b/drivers/dma/switchtec_dma.c > @@ -1165,15 +1165,13 @@ static int switchtec_dma_chan_free(struct pci_dev *pdev, > return 0; > } > > -static int switchtec_dma_chans_release(struct pci_dev *pdev, > - struct switchtec_dma_dev *swdma_dev) > +static void switchtec_dma_chans_release(struct pci_dev *pdev, > + struct switchtec_dma_dev *swdma_dev) > { > int i; > > for (i = 0; i < swdma_dev->chan_cnt; i++) > switchtec_dma_chan_free(pdev, swdma_dev->swdma_chans[i]); > - > - return 0; > } > > static void switchtec_dma_chans_free(struct switchtec_dma_dev *swdma_dev) > -- > 2.47.3 >