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

Commit 0695de32 authored by Tony Lindgren's avatar Tony Lindgren
Browse files

ARM: OMAP: Fix warning in dma.c



Fix warning: 'offset' might be uninitialized

Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent de560374
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -747,7 +747,7 @@ int omap_set_dma_callback(int lch,
 */
 */
dma_addr_t omap_get_dma_src_pos(int lch)
dma_addr_t omap_get_dma_src_pos(int lch)
{
{
	dma_addr_t offset;
	dma_addr_t offset = 0;


	if (cpu_class_is_omap1())
	if (cpu_class_is_omap1())
		offset = (dma_addr_t) (OMAP1_DMA_CSSA_L_REG(lch) |
		offset = (dma_addr_t) (OMAP1_DMA_CSSA_L_REG(lch) |
@@ -769,7 +769,7 @@ dma_addr_t omap_get_dma_src_pos(int lch)
 */
 */
dma_addr_t omap_get_dma_dst_pos(int lch)
dma_addr_t omap_get_dma_dst_pos(int lch)
{
{
	dma_addr_t offset;
	dma_addr_t offset = 0;


	if (cpu_class_is_omap1())
	if (cpu_class_is_omap1())
		offset = (dma_addr_t) (OMAP1_DMA_CDSA_L_REG(lch) |
		offset = (dma_addr_t) (OMAP1_DMA_CDSA_L_REG(lch) |