soc: qcom: memory_dump_v2: Initialize value of id

Id need to be initialized in function mem_dump_alloc.

Change-Id: Iddc3b4b09ea0a3b3554e5ab16e678240dcefe79e
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
This commit is contained in:
Mao Jinlong 2022-08-18 19:45:51 -07:00 committed by Gerrit - the friendly Code Review server
parent 8a22567035
commit c578bc78ac

View File

@ -1059,7 +1059,7 @@ static int mem_dump_alloc(struct platform_device *pdev)
struct msm_dump_entry dump_entry;
struct md_region md_entry;
size_t total_size;
u32 size, id;
u32 size, id = 0;
int ret, no_of_nodes;
dma_addr_t dma_handle;
phys_addr_t phys_addr, mini_phys_addr;