drivers: soc: ddr_stats: Initialize the uninitialized variable

This patch can initialize the uninitialized local variables.

Change-Id: I3f37a25ddaa52979657396da81830fdc8f9c2332
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
This commit is contained in:
Raghavendra Kakarla 2020-11-24 23:45:57 +05:30
commit d37b856ed7

View file

@ -69,7 +69,7 @@ static ssize_t ddr_stats_append_data_to_buf(char *buf, int length, int *count,
{
u32 cp_idx = 0;
u32 name;
u64 duration;
u64 duration = 0;
if (accumulated_duration) {
duration = data->duration * 100;