提交 03a6d4a0 编写于 作者: R R Sricharan 提交者: Tony Lindgren

ARM: OMAP: dma: Remove the wrong dev_id check

Once a free channel is found, the check for dev_id == 0 does
not make any sense. Get rid of it.
Signed-off-by: NR Sricharan <r.sricharan@ti.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 7d132055
......@@ -701,8 +701,8 @@ int omap_request_dma(int dev_id, const char *dev_name,
for (ch = 0; ch < dma_chan_count; ch++) {
if (free_ch == -1 && dma_chan[ch].dev_id == -1) {
free_ch = ch;
if (dev_id == 0)
break;
/* Exit after first free channel found */
break;
}
}
if (free_ch == -1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册