diff --git a/drivers/soc/qcom/ddr_stats.c b/drivers/soc/qcom/ddr_stats.c index 930e6bedba1f..a2f6e35fb8d0 100644 --- a/drivers/soc/qcom/ddr_stats.c +++ b/drivers/soc/qcom/ddr_stats.c @@ -71,7 +71,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;