Browse Source

dsp: Initialize variable before use

Initialize variable before use in voice driver.

CRs-Fixed: 2209691
Change-Id: I84b51262b5c3cb12ea23372eb7c7109c6ff844b4
Signed-off-by: Vignesh Kulothungan <[email protected]>
Vignesh Kulothungan 7 years ago
parent
commit
13d5a9666a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dsp/q6voice.c

+ 1 - 1
dsp/q6voice.c

@@ -7903,7 +7903,7 @@ static int voice_alloc_oob_shared_mem(void)
 	int cnt = 0;
 	int rc = 0;
 	size_t len;
-	void *mem_addr;
+	void *mem_addr = NULL;
 	dma_addr_t phys;
 	int bufsz = BUFFER_BLOCK_SIZE;
 	int bufcnt = NUM_OF_BUFFERS;