projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
240eb91
)
dmaengine: edma: remove redundant conditions
author
Vinod Koul
<vinod.koul@intel.com>
Wed, 30 Sep 2015 06:36:36 +0000
(12:06 +0530)
committer
Vinod Koul
<vinod.koul@intel.com>
Wed, 30 Sep 2015 06:36:36 +0000
(12:06 +0530)
in edma_callback, driver was doing redundant check for desc, so remove that
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/edma.c
b/drivers/dma/edma.c
index 3e5d4f193005362bf0fd672a57ed7f1a2765af78..558b0b4e7536b4ce1fcee7818630ab3757b38618 100644
(file)
--- a/
drivers/dma/edma.c
+++ b/
drivers/dma/edma.c
@@
-726,7
+726,7
@@
static void edma_callback(unsigned ch_num, u16 ch_status, void *data)
edesc = echan->edesc;
/* Pause the channel for non-cyclic */
- if (!edesc ||
(edesc && !edesc->cyclic)
)
+ if (!edesc ||
!edesc->cyclic
)
edma_pause(echan->ch_num);
switch (ch_status) {