dmaengine: tegra-apb: Remove unneeded initialization of tdc->config_init
authorDmitry Osipenko <digetx@gmail.com>
Sun, 9 Feb 2020 16:33:46 +0000 (19:33 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 25 Feb 2020 06:27:33 +0000 (11:57 +0530)
There is no need to re-initialize the already initialized variables.
The tdc->config_init=false after driver's probe and after channel's
freeing, so there is no need to re-initialize it on the channel's
allocation.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20200209163356.6439-10-digetx@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra20-apb-dma.c

index 4cc01a82d9836db15a54b0dbf6fe6bff511524be..49b2d3c1f9356755c89841f783e6889dd61949e0 100644 (file)
@@ -1288,7 +1288,6 @@ static int tegra_dma_alloc_chan_resources(struct dma_chan *dc)
        int ret;
 
        dma_cookie_init(&tdc->dma_chan);
-       tdc->config_init = false;
 
        ret = pm_runtime_get_sync(tdma->dev);
        if (ret < 0)