]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: fsl-dpaa2-qdma: Fix error return code in two functions
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 8 May 2021 03:00:56 +0000 (11:00 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 10 May 2021 16:04:49 +0000 (21:34 +0530)
commit6dae06b964d96616359b8f0e72a9cf6ee30e77c0
tree2bb81f44dafc1ed7484a32da98cf89527b62597e
parent14a3e2c87cbd27de74c51cf21a7d5166b0ef5963
dmaengine: fsl-dpaa2-qdma: Fix error return code in two functions

Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in the function where it is.

Fixes: 754e80b9264b ("dmaengine: fsl-dpaa2-qdma: Add NXP dpaa2 qDMA controller driver for Layerscape SoCs")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210508030056.2027-1-thunder.leizhen@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c