瀏覽代碼

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>
Vinod Koul 10 年之前
父節點
當前提交
ddfe4d0cce
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/dma/edma.c

+ 1 - 1
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) {