Commit dafd8fe2 authored by Surendran K's avatar Surendran K Committed by Vinod Koul

dmaengine: pl330: Remove unreachable code

_setup_req(..) never returns negative value.
Hence the condition ret < 0 is never met
Signed-off-by: default avatarSurendran K <surendran.k@samsung.com>
Link: https://lore.kernel.org/r/20201016103347.63084-1-surendran.k@samsung.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 8145dce8
...@@ -1527,8 +1527,6 @@ static int pl330_submit_req(struct pl330_thread *thrd, ...@@ -1527,8 +1527,6 @@ static int pl330_submit_req(struct pl330_thread *thrd,
/* First dry run to check if req is acceptable */ /* First dry run to check if req is acceptable */
ret = _setup_req(pl330, 1, thrd, idx, &xs); ret = _setup_req(pl330, 1, thrd, idx, &xs);
if (ret < 0)
goto xfer_exit;
if (ret > pl330->mcbufsz / 2) { if (ret > pl330->mcbufsz / 2) {
dev_info(pl330->ddma.dev, "%s:%d Try increasing mcbufsz (%i/%i)\n", dev_info(pl330->ddma.dev, "%s:%d Try increasing mcbufsz (%i/%i)\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment