From patchwork Thu Dec 4 04:11:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 5435101 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 95ACB9F1D4 for ; Thu, 4 Dec 2014 04:13:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D12C20266 for ; Thu, 4 Dec 2014 04:13:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8FD8D20265 for ; Thu, 4 Dec 2014 04:13:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752991AbaLDEN3 (ORCPT ); Wed, 3 Dec 2014 23:13:29 -0500 Received: from mail-pd0-f182.google.com ([209.85.192.182]:62208 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752983AbaLDEN2 (ORCPT ); Wed, 3 Dec 2014 23:13:28 -0500 Received: by mail-pd0-f182.google.com with SMTP id r10so16895079pdi.13 for ; Wed, 03 Dec 2014 20:13:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=BqcVwC53j9VfBLsQJyZXZUrb1HI6Yo4H8vaulD6Cv54=; b=IVSiQqOlJLGoHcrYlgEQ59yv5aFjQwVoKyEofe0cbiNcfMvB4s8yUURBWVL7PxLn5a MeI36pU019TRnLh/F5SSmQwcsJXhEj1wax222QIkAqyon1hLboqxFCuWZrqyp9/ydzzY zqyuLZtZuFwJP94cJwcyQhQRm1Ap+mjHEoAc47lvCfudj/BNFBxPRAsAx/1WM6cTUKet nJ9fCg993VYD2dmxfMow5Mlq02fhE5l5guHRZgohv7PuXzIb+u66p0YmzPBtSXmE9w1N aWxPEq+0h/3kwhTbL+opfs6rcrrLNm9zZ5ixd7k3hFiXnq1G/HG3qT5xkFep1kc3ztcl MCvQ== X-Gm-Message-State: ALoCoQkPB706xNs1NVxEd05LMJICVib44onMTzX52fAYYVLhTpLMtg5qWYKj3GNCXZp0lVHUpxDE X-Received: by 10.68.78.99 with SMTP id a3mr22577603pbx.0.1417666408262; Wed, 03 Dec 2014 20:13:28 -0800 (PST) Received: from localhost ([122.166.92.172]) by mx.google.com with ESMTPSA id yo1sm2177520pab.27.2014.12.03.20.13.27 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:27 -0800 (PST) From: Viresh Kumar To: linux-pm@vger.kernel.org, edubezval@gmail.com Cc: linaro-kernel@lists.linaro.org, rui.zhang@intel.com, amit.daniel@samsung.com, javi.merino@arm.com, Viresh Kumar Subject: [PATCH V2 11/26] thermal: cpu_cooling: no need to initialze 'ret' Date: Thu, 4 Dec 2014 09:41:53 +0530 Message-Id: <484221f147f77526116e0d5b3c1f04679515bc7a.1417664938.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.3.693.g996b0fd In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Viresh Kumar --- drivers/thermal/cpu_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index c144493..d57b8bb 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -454,7 +454,7 @@ __cpufreq_cooling_register(struct device_node *np, struct cpufreq_cooling_device *cpufreq_dev; unsigned int min = 0, max = 0; char dev_name[THERMAL_NAME_LENGTH]; - int ret = 0, i; + int ret, i; struct cpufreq_policy policy; if (!cpufreq_frequency_get_table(cpumask_first(clip_cpus))) {