Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2148389pxb; Mon, 12 Apr 2021 16:04:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIJ8DW5I+Tt9bb0Hbjb2rom7og6mSY/hEYkLOB4OhvV9CuerTb+naAzO8DWOKt1ZP53SG6 X-Received: by 2002:a63:6ec1:: with SMTP id j184mr28996174pgc.364.1618268695889; Mon, 12 Apr 2021 16:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618268695; cv=none; d=google.com; s=arc-20160816; b=RhCaWCuTMtpoyiPi8ipgXHafDeR/MBzNNJMC2Q5pE49SzU8dM6lzYto15ZZ/X6IcXC mL7FgftcEniY7qhiYepf2Wahjkl8eJEgV99k4IdD8JtbT5XHSK5s973tj8dTnLJOr+wL PzEnC74iAIWn0mXEUcBAYDNGu8rE9jGYwH8WyfVbL9s4oN7GSB4F8N1leXbvw2Uwkkoq FrFJKkBd4guB+Of37jvHOb8DRZUKgma9UYqR8MMNPV+ULwuZIXkO651hP1xvDO50qc0S moMw0KXSD4Yn+YL+vTZkAGxblmWYdc+M9TFSd/4z9By5O01ZWFObnCq3iX3jyZH1L/jI u8uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=6JuxY9KLNNaZGUNNVq3UUxZWQ15X5kRGCeyRAEa2JdY=; b=benNcjYzRYv0Bv2eN7vR1dnVBcCVn77xoV32quAoFWwuQ6dUOlMFfdeARopGas/h9E tvlW12pshydua5g0T1Ab/3DTwQaxeyqP602RbXkHHzYgYP4bgbK1WrUTZfxVHvjN2DJF MQR9cHHRXAQR9U+KPXOFgnJuQp41N7CK3ntp5PA5YABoh05PnipSSIZ8UMLD+5hj5pI+ WOdkt502OiyJ8zMaSn2T393tBa5Toj9Dz0xqYRjewvp7JrlumEwbAkLX42yCbIJaTVBK wpfajHNsXcuibn/jVmmYQ8T21TOzzkTCn/F3nyeoSrL1r6n8Vq3rJFRW9a5i/q3HL0Ps d05A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q4si18236185plb.97.2021.04.12.16.04.43; Mon, 12 Apr 2021 16:04:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244442AbhDLJwe (ORCPT + 99 others); Mon, 12 Apr 2021 05:52:34 -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 Content-Transfer-Encoding: 8bit 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-kernel@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) -- 2.30.2