diff options
author | R Sricharan <r.sricharan@ti.com> | 2013-06-13 10:17:09 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-06-18 03:08:42 -0400 |
commit | 03a6d4a09968368029d34c5b3f5361e8548d8442 (patch) | |
tree | 87c07e87ec674fbac2eb92b7b54d9909cdeacf8e /arch/arm/plat-omap | |
parent | 7d132055814ef17a6c7b69f342244c410a5e000f (diff) |
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>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index e06c34bdc34a..2f9933156465 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c | |||
@@ -701,8 +701,8 @@ int omap_request_dma(int dev_id, const char *dev_name, | |||
701 | for (ch = 0; ch < dma_chan_count; ch++) { | 701 | for (ch = 0; ch < dma_chan_count; ch++) { |
702 | if (free_ch == -1 && dma_chan[ch].dev_id == -1) { | 702 | if (free_ch == -1 && dma_chan[ch].dev_id == -1) { |
703 | free_ch = ch; | 703 | free_ch = ch; |
704 | if (dev_id == 0) | 704 | /* Exit after first free channel found */ |
705 | break; | 705 | break; |
706 | } | 706 | } |
707 | } | 707 | } |
708 | if (free_ch == -1) { | 708 | if (free_ch == -1) { |