Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03a6d4a0 authored by R Sricharan's avatar R Sricharan Committed by Tony Lindgren
Browse files

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: default avatarR Sricharan <r.sricharan@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 7d132055
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -701,7 +701,7 @@ 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)
			/* Exit after first free channel found */
			break;
		}
	}