diff options
author | ran jianping <ran.jianping@zte.com.cn> | 2021-11-12 10:09:46 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-11-24 17:26:13 +0100 |
commit | d7fbdc575b33c374ce88ccfe3ab364f7eb240f8a (patch) | |
tree | 174f3062f52ca381d86c7abb3abecd3813d7b38e | |
parent | Linux 5.16-rc2 (diff) | |
download | linux-d7fbdc575b33c374ce88ccfe3ab364f7eb240f8a.tar.xz linux-d7fbdc575b33c374ce88ccfe3ab364f7eb240f8a.zip |
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>
-rw-r--r-- | tools/thermal/tmon/pid.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/thermal/tmon/pid.c b/tools/thermal/tmon/pid.c index c54edb4f630c..296f69c00c57 100644 --- a/tools/thermal/tmon/pid.c +++ b/tools/thermal/tmon/pid.c @@ -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) |