提交 ddfe4d0c 编写于 作者: V Vinod Koul

dmaengine: edma: remove redundant conditions

in edma_callback, driver was doing redundant check for desc, so remove that
Reported-by: NDavid Binderman <dcb314@hotmail.com>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 240eb916
...@@ -726,7 +726,7 @@ static void edma_callback(unsigned ch_num, u16 ch_status, void *data) ...@@ -726,7 +726,7 @@ static void edma_callback(unsigned ch_num, u16 ch_status, void *data)
edesc = echan->edesc; edesc = echan->edesc;
/* Pause the channel for non-cyclic */ /* Pause the channel for non-cyclic */
if (!edesc || (edesc && !edesc->cyclic)) if (!edesc || !edesc->cyclic)
edma_pause(echan->ch_num); edma_pause(echan->ch_num);
switch (ch_status) { switch (ch_status) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册