dmaengine: sun6i: Remove useless check
The transfer direction is now checked in set_config. There is no need to check it twice. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
a4eb36b02c
commit
3435fb1853
|
@ -585,11 +585,6 @@ static struct dma_async_tx_descriptor *sun6i_dma_prep_slave_sg(
|
||||||
if (!sgl)
|
if (!sgl)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!is_slave_direction(dir)) {
|
|
||||||
dev_err(chan2dev(chan), "Invalid DMA direction\n");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = set_config(sdev, sconfig, dir, &lli_cfg);
|
ret = set_config(sdev, sconfig, dir, &lli_cfg);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(chan2dev(chan), "Invalid DMA configuration\n");
|
dev_err(chan2dev(chan), "Invalid DMA configuration\n");
|
||||||
|
|
Loading…
Reference in New Issue