mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
dmaengine: fsl-qdma: fix duplicated argument to &&
[ Upstream commit 4b048178854da11656596d36a107577d66fd1e08 ]
There is duplicated argument to && in function fsl_qdma_free_chan_resources,
which looks like a typo, pointer fsl_queue->desc_pool also needs NULL check,
fix it.
Detected with coccinelle.
Fixes: b092529e0a ("dmaengine: fsl-qdma: Add qDMA controller driver for Layerscape SoCs")
Signed-off-by: Chen Zhou <[email protected]>
Reviewed-by: Peng Ma <[email protected]>
Tested-by: Peng Ma <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
d30a4882e6
commit
77b131f652
1 changed files with 1 additions and 1 deletions
|
|
@ -304,7 +304,7 @@ static void fsl_qdma_free_chan_resources(struct dma_chan *chan)
|
|||
|
||||
vchan_dma_desc_free_list(&fsl_chan->vchan, &head);
|
||||
|
||||
if (!fsl_queue->comp_pool && !fsl_queue->comp_pool)
|
||||
if (!fsl_queue->comp_pool && !fsl_queue->desc_pool)
|
||||
return;
|
||||
|
||||
list_for_each_entry_safe(comp_temp, _comp_temp,
|
||||
|
|
|
|||
Loading…
Reference in a new issue