dmaengine: sun6i: Remove useless check
authorJean-Francois Moine <moinejf@free.fr>
Thu, 28 Apr 2016 15:09:14 +0000 (17:09 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 2 May 2016 10:29:02 +0000 (15:59 +0530)
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>
drivers/dma/sun6i-dma.c

index cd436c6a29a75a1fca5b5f89806ddc3b07904fbd..80e426d9da5d5e4c26663ae5cfa5a2e2257da9a4 100644 (file)
@@ -585,11 +585,6 @@ static struct dma_async_tx_descriptor *sun6i_dma_prep_slave_sg(
        if (!sgl)
                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);
        if (ret) {
                dev_err(chan2dev(chan), "Invalid DMA configuration\n");
This page took 0.025263 seconds and 5 git commands to generate.