Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: pl08x: drop the useless function

Unneeded variable: "retval". Return "NULL" , so we have to make code clear.
better way, drop the function.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Link: https://lore.kernel.org/r/1649726180-13133-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Haowen Bai and committed by
Vinod Koul
3dbc47a9 23084545

-11
-11
drivers/dma/amba-pl08x.c
··· 1535 1535 vchan_free_chan_resources(to_virt_chan(chan)); 1536 1536 } 1537 1537 1538 - static struct dma_async_tx_descriptor *pl08x_prep_dma_interrupt( 1539 - struct dma_chan *chan, unsigned long flags) 1540 - { 1541 - struct dma_async_tx_descriptor *retval = NULL; 1542 - 1543 - return retval; 1544 - } 1545 - 1546 1538 /* 1547 1539 * Code accessing dma_async_is_complete() in a tight loop may give problems. 1548 1540 * If slaves are relying on interrupts to signal completion this function ··· 2752 2760 pl08x->memcpy.dev = &adev->dev; 2753 2761 pl08x->memcpy.device_free_chan_resources = pl08x_free_chan_resources; 2754 2762 pl08x->memcpy.device_prep_dma_memcpy = pl08x_prep_dma_memcpy; 2755 - pl08x->memcpy.device_prep_dma_interrupt = pl08x_prep_dma_interrupt; 2756 2763 pl08x->memcpy.device_tx_status = pl08x_dma_tx_status; 2757 2764 pl08x->memcpy.device_issue_pending = pl08x_issue_pending; 2758 2765 pl08x->memcpy.device_config = pl08x_config; ··· 2778 2787 pl08x->slave.dev = &adev->dev; 2779 2788 pl08x->slave.device_free_chan_resources = 2780 2789 pl08x_free_chan_resources; 2781 - pl08x->slave.device_prep_dma_interrupt = 2782 - pl08x_prep_dma_interrupt; 2783 2790 pl08x->slave.device_tx_status = pl08x_dma_tx_status; 2784 2791 pl08x->slave.device_issue_pending = pl08x_issue_pending; 2785 2792 pl08x->slave.device_prep_slave_sg = pl08x_prep_slave_sg;