linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] thermal: tmon: Remove unneeded variable
@ 2021-04-12  9:35 Wan Jiabing
  0 siblings, 0 replies; only message in thread
From: Wan Jiabing @ 2021-04-12  9:35 UTC (permalink / raw)
  To: rui.zhang, daniel.lezcano, amitk, linux-pm, linux-kernel
  Cc: kael_w, Wan Jiabing

Fix coccicheck warning:

tools/thermal/tmon/pid.c:57:5-8:
Unneeded variable: ret. Return 0 on line 68

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 tools/thermal/tmon/pid.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tools/thermal/tmon/pid.c b/tools/thermal/tmon/pid.c
index c54edb4f630c..cbacd3b438b2 100644
--- a/tools/thermal/tmon/pid.c
+++ b/tools/thermal/tmon/pid.c
@@ -54,8 +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;
 	/* TODO: get it from TUI tuning tab */
@@ -65,7 +63,7 @@ int init_thermal_controller(void)
 
 	p_param.t_target = target_temp_user;
 
-	return ret;
+	return 0;
 }
 
 void controller_reset(void)
-- 
2.30.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-12  9:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12  9:35 [PATCH] thermal: tmon: Remove unneeded variable Wan Jiabing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).