projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8145dce
)
dmaengine: pl330: Remove unreachable code
author
Surendran K
<surendran.k@samsung.com>
Fri, 16 Oct 2020 10:33:47 +0000
(16:03 +0530)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 30 Oct 2020 08:40:27 +0000
(14:10 +0530)
_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>
drivers/dma/pl330.c
patch
|
blob
|
history
diff --git
a/drivers/dma/pl330.c
b/drivers/dma/pl330.c
index e9f0101d92fa6ffc9ec19437f2d571d9af5c523e..8355586c97882e5a3f1af57a8f678381862341a2 100644
(file)
--- 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",