aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2007-05-07 21:24:14 -0400
committerTony Lindgren <tony@atomide.com>2007-05-10 18:14:52 -0400
commit0695de32579edefd137f7e9fa056e6d204011d70 (patch)
treeb916e5789436141d02060876737913b0247d6ecf /arch/arm
parentde5603748af8bf7deac403e6ba92887f8d18e812 (diff)
ARM: OMAP: Fix warning in dma.c
Fix warning: 'offset' might be uninitialized Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/plat-omap/dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index 2d86b106ff3e..55a4d3be16b6 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -747,7 +747,7 @@ int omap_set_dma_callback(int lch,
747 */ 747 */
748dma_addr_t omap_get_dma_src_pos(int lch) 748dma_addr_t omap_get_dma_src_pos(int lch)
749{ 749{
750 dma_addr_t offset; 750 dma_addr_t offset = 0;
751 751
752 if (cpu_class_is_omap1()) 752 if (cpu_class_is_omap1())
753 offset = (dma_addr_t) (OMAP1_DMA_CSSA_L_REG(lch) | 753 offset = (dma_addr_t) (OMAP1_DMA_CSSA_L_REG(lch) |
@@ -769,7 +769,7 @@ dma_addr_t omap_get_dma_src_pos(int lch)
769 */ 769 */
770dma_addr_t omap_get_dma_dst_pos(int lch) 770dma_addr_t omap_get_dma_dst_pos(int lch)
771{ 771{
772 dma_addr_t offset; 772 dma_addr_t offset = 0;
773 773
774 if (cpu_class_is_omap1()) 774 if (cpu_class_is_omap1())
775 offset = (dma_addr_t) (OMAP1_DMA_CDSA_L_REG(lch) | 775 offset = (dma_addr_t) (OMAP1_DMA_CDSA_L_REG(lch) |