Skip to content

Commit

Permalink
thermal: tools: tmon: remove unneeded local variable
Browse files Browse the repository at this point in the history
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: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ran jianping <ran.jianping@zte.com.cn>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
ran jianping authored and Rafael J. Wysocki committed Nov 24, 2021
1 parent 1360572 commit d7fbdc5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/thermal/tmon/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -65,7 +64,7 @@ int init_thermal_controller(void)

p_param.t_target = target_temp_user;

return ret;
return 0;
}

void controller_reset(void)
Expand Down

0 comments on commit d7fbdc5

Please sign in to comment.