From: ran jianping Date: Fri, 12 Nov 2021 09:09:46 +0000 (+0000) Subject: thermal: tools: tmon: remove unneeded local variable X-Git-Tag: v5.17-rc1~166^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7fbdc575b33c374ce88ccfe3ab364f7eb240f8a;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: ran jianping Signed-off-by: Rafael J. Wysocki --- diff --git a/tools/thermal/tmon/pid.c b/tools/thermal/tmon/pid.c index c54edb4f630cf..296f69c00c57a 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)