projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4eb36b
)
dmaengine: sun6i: Remove useless check
author
Jean-Francois Moine
<moinejf@free.fr>
Thu, 28 Apr 2016 15:09:14 +0000
(17:09 +0200)
committer
Vinod 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/sun6i-dma.c
b/drivers/dma/sun6i-dma.c
index cd436c6a29a75a1fca5b5f89806ddc3b07904fbd..80e426d9da5d5e4c26663ae5cfa5a2e2257da9a4 100644
(file)
--- 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(
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");