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: R Sricharan <r.sricharan@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
R Sricharan 2013-06-13 19:47:09 +05:30 committed by Tony Lindgren
parent 7d13205581
commit 03a6d4a099
1 changed files with 2 additions and 2 deletions

View File

@ -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) {