Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

ran jianping and committed by
Rafael J. Wysocki
d7fbdc57 13605725

+1 -2
+1 -2
tools/thermal/tmon/pid.c
··· 54 54 */ 55 55 int init_thermal_controller(void) 56 56 { 57 - int ret = 0; 58 57 59 58 /* init pid params */ 60 59 p_param.ts = ticktime; ··· 64 65 65 66 p_param.t_target = target_temp_user; 66 67 67 - return ret; 68 + return 0; 68 69 } 69 70 70 71 void controller_reset(void)