Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a15b716 authored by Gaurav Kohli's avatar Gaurav Kohli
Browse files

msm: watchdog: Initialize delay_time variable with 0



Initialize delay_time with proper value to avoid uninitialized
variable error by static code analysis tool.

Change-Id: I523a8e0768692e439ac3a39728cc188221b76fcb
Signed-off-by: default avatarGaurav Kohli <gkohli@codeaurora.org>
parent 182fc241
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -314,7 +314,7 @@ static __ref int watchdog_kthread(void *arg)
{
	struct msm_watchdog_data *wdog_dd =
		(struct msm_watchdog_data *)arg;
	unsigned long delay_time;
	unsigned long delay_time = 0;
	struct sched_param param = {.sched_priority = MAX_RT_PRIO-1};

	sched_setscheduler(current, SCHED_FIFO, &param);