Commit d7fbdc57 authored by ran jianping's avatar ran jianping Committed by Rafael J. Wysocki

thermal: tools: tmon: remove unneeded local variable

Fix the following coccicheck review:
/tools/thermal/tmon/pid.c:57:5-8: Unneeded variable

Remove unneeded variable used to store return value.
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarran jianping <ran.jianping@zte.com.cn>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 13605725
......@@ -54,7 +54,6 @@ static double xk_1, xk_2; /* input temperature x[k-#] */
*/
int init_thermal_controller(void)
{
int ret = 0;
/* init pid params */
p_param.ts = ticktime;
......@@ -65,7 +64,7 @@ int init_thermal_controller(void)
p_param.t_target = target_temp_user;
return ret;
return 0;
}
void controller_reset(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment