lib: alloc: fix block_map uninitialized warning

Fix build warning as error:
error: 'block_map' may be used uninitialized in this function

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
This commit is contained in:
Pan Xiuli 2019-11-05 13:14:31 +08:00 committed by Daniel Baluta
parent b5c8f83c48
commit 5eb668cc52
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ static void *get_ptr_from_heap(struct mm_heap *heap, int zone, uint32_t caps,
static void free_block(void *ptr)
{
struct mm_heap *heap;
struct block_map *block_map;
struct block_map *block_map = NULL;
struct block_hdr *hdr;
int i;
int block;