aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2016-04-28 11:09:14 -0400
committerVinod Koul <vinod.koul@intel.com>2016-05-02 06:29:02 -0400
commit3435fb18533c27b288c19cfb7fe783e5433e36aa (patch)
tree5793c05d586666f91f7b854447eade7180950a87 /drivers/dma
parenta4eb36b02c596b9b91b22c6ef83f92397feb9250 (diff)
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>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/sun6i-dma.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma/sun6i-dma.c
index cd436c6a29a7..80e426d9da5d 100644
--- a/drivers/dma/sun6i-dma.c
+++ b/drivers/dma/sun6i-dma.c
@@ -585,11 +585,6 @@ static struct dma_async_tx_descriptor *sun6i_dma_prep_slave_sg(
585 if (!sgl) 585 if (!sgl)
586 return NULL; 586 return NULL;
587 587
588 if (!is_slave_direction(dir)) {
589 dev_err(chan2dev(chan), "Invalid DMA direction\n");
590 return NULL;
591 }
592
593 ret = set_config(sdev, sconfig, dir, &lli_cfg); 588 ret = set_config(sdev, sconfig, dir, &lli_cfg);
594 if (ret) { 589 if (ret) {
595 dev_err(chan2dev(chan), "Invalid DMA configuration\n"); 590 dev_err(chan2dev(chan), "Invalid DMA configuration\n");