Skip to content

Commit d7fbdc5

Browse files
ran jianpingrafaeljw
authored andcommitted
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: 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>
1 parent 1360572 commit d7fbdc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/thermal/tmon/pid.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ static double xk_1, xk_2; /* input temperature x[k-#] */
5454
*/
5555
int init_thermal_controller(void)
5656
{
57-
int ret = 0;
5857

5958
/* init pid params */
6059
p_param.ts = ticktime;
@@ -65,7 +64,7 @@ int init_thermal_controller(void)
6564

6665
p_param.t_target = target_temp_user;
6766

68-
return ret;
67+
return 0;
6968
}
7069

7170
void controller_reset(void)

0 commit comments

Comments
 (0)