]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dmaengine: edma: remove redundant conditions
authorVinod Koul <vinod.koul@intel.com>
Wed, 30 Sep 2015 06:36:36 +0000 (12:06 +0530)
committerVinod 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

index 3e5d4f193005362bf0fd672a57ed7f1a2765af78..558b0b4e7536b4ce1fcee7818630ab3757b38618 100644 (file)
@@ -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) {