]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: fsl-qdma: fix duplicated argument to &&
authorChen Zhou <chenzhou10@huawei.com>
Mon, 20 Jan 2020 12:58:43 +0000 (20:58 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 21 Jan 2020 07:45:37 +0000 (13:15 +0530)
commit79b6c01088a7fe6ead9d595eb7e359c7b7bdd793
tree0922498e7f14574793874d6e9e52e7a5a7bf9365
parentc4835fe3d20c03b43bac771297ffca4e38e70f69
dmaengine: fsl-qdma: fix duplicated argument to &&

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: a25617b24728 ("dmaengine: fsl-qdma: Add qDMA controller driver for Layerscape SoCs")
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Reviewed-by: Peng Ma <peng.ma@nxp.com>
Tested-by: Peng Ma <peng.ma@nxp.com>
Link: https://lore.kernel.org/r/20200120125843.34398-1-chenzhou10@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/fsl-qdma.c