summaryrefslogtreecommitdiffstats
path: root/drivers/dma/pl330.c
diff options
context:
space:
mode:
authorSurendran K <surendran.k@samsung.com>2020-10-16 12:33:47 +0200
committerVinod Koul <vkoul@kernel.org>2020-10-30 09:40:27 +0100
commitdafd8fe27a9999ef14094dddfd5aaccd49750e1d (patch)
tree6fdb3c2a65da3cfd6e9f5a19bcf608351590f1a9 /drivers/dma/pl330.c
parentdmaengine: stm32-mdma: Use struct_size() in kzalloc() (diff)
downloadlinux-dafd8fe27a9999ef14094dddfd5aaccd49750e1d.tar.xz
linux-dafd8fe27a9999ef14094dddfd5aaccd49750e1d.zip
dmaengine: pl330: Remove unreachable code
_setup_req(..) never returns negative value. Hence the condition ret < 0 is never met Signed-off-by: Surendran K <surendran.k@samsung.com> Link: https://lore.kernel.org/r/20201016103347.63084-1-surendran.k@samsung.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/pl330.c')
-rw-r--r--drivers/dma/pl330.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index e9f0101d92fa..8355586c9788 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -1527,8 +1527,6 @@ static int pl330_submit_req(struct pl330_thread *thrd,
/* First dry run to check if req is acceptable */
ret = _setup_req(pl330, 1, thrd, idx, &xs);
- if (ret < 0)
- goto xfer_exit;
if (ret > pl330->mcbufsz / 2) {
dev_info(pl330->ddma.dev, "%s:%d Try increasing mcbufsz (%i/%i)\n",