summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul2015-09-30 08:36:36 +0200
committerVinod Koul2015-09-30 08:36:36 +0200
commitddfe4d0cce7828d79f3e3762c664342658c3f254 (patch)
tree6fec59e840bdabbd11ea05f945f6280776efb14f
parentdmaengine: drop null test before destroy functions (diff)
downloadkernel-qcow2-linux-ddfe4d0cce7828d79f3e3762c664342658c3f254.tar.gz
kernel-qcow2-linux-ddfe4d0cce7828d79f3e3762c664342658c3f254.tar.xz
kernel-qcow2-linux-ddfe4d0cce7828d79f3e3762c664342658c3f254.zip
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>
-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) {