mirror of https://github.com/thesofproject/sof.git
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:
parent
b5c8f83c48
commit
5eb668cc52
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue