summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2015-09-30 12:06:36 +0530
committerVinod Koul <vinod.koul@intel.com>2015-09-30 12:06:36 +0530
commitddfe4d0cce7828d79f3e3762c664342658c3f254 (patch)
tree6fec59e840bdabbd11ea05f945f6280776efb14f /drivers
parent240eb916076c8deb206c7e66d1ee9eb37d6a499a (diff)
dmaengine: edma: remove redundant conditions
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/edma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c
index 3e5d4f193005..558b0b4e7536 100644
--- 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) {