Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Surendran K and committed by
Vinod Koul
dafd8fe2 8145dce8

-2
-2
drivers/dma/pl330.c
··· 1527 1527 1528 1528 /* First dry run to check if req is acceptable */ 1529 1529 ret = _setup_req(pl330, 1, thrd, idx, &xs); 1530 - if (ret < 0) 1531 - goto xfer_exit; 1532 1530 1533 1531 if (ret > pl330->mcbufsz / 2) { 1534 1532 dev_info(pl330->ddma.dev, "%s:%d Try increasing mcbufsz (%i/%i)\n",