dmaengine: tegra-apb: Remove unneeded initialization of tdc->config_init
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>
This commit is contained in:
parent
3964293aec
commit
14c63abfab
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue