From patchwork Mon Apr 12 09:35:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wan Jiabing X-Patchwork-Id: 419754 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A2B5C433B4 for ; Mon, 12 Apr 2021 09:47:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 579116120B for ; Mon, 12 Apr 2021 09:47:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239141AbhDLJrO (ORCPT ); Mon, 12 Apr 2021 05:47:14 -0400 Received: from mail-m17635.qiye.163.com ([59.111.176.35]:21872 "EHLO mail-m17635.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241126AbhDLJhP (ORCPT ); Mon, 12 Apr 2021 05:37:15 -0400 Received: from wanjb-KLV-WX9.. (unknown [123.131.141.119]) by mail-m17635.qiye.163.com (Hmail) with ESMTPA id 5E397400290; Mon, 12 Apr 2021 17:36:46 +0800 (CST) From: Wan Jiabing To: rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kael_w@yeah.net, Wan Jiabing Subject: [PATCH] thermal: tmon: Remove unneeded variable Date: Mon, 12 Apr 2021 17:35:22 +0800 Message-Id: <20210412093522.29647-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQ0NLH1ZMQx9KHkJJGExLHUpVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MTY6Dio*Hj8QMB8rSEoOOCgj Vg0aFA1VSlVKTUpDSUlLSUtMSkpMVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlK SUhVSkhKVUpPSlVKSkJZV1kIAVlBSk1NSTcG X-HM-Tid: 0a78c570ca2bd991kuws5e397400290 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Fix coccicheck warning: tools/thermal/tmon/pid.c:57:5-8: Unneeded variable: ret. Return 0 on line 68 Signed-off-by: Wan Jiabing --- 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)