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: 41895 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1FD5A25E88 for ; Thu, 4 Dec 2014 04:13:33 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id hs14sf6974030lab.9 for ; Wed, 03 Dec 2014 20:13:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=f5C7E1HdkBKiUNy+ZYluK2hzGcL8rF1y/nuWCoSpKRg=; b=kbVeDmAODcrGeQ4vRE+LL7S6x1Ivu/xIkzm9YE6wDrnWKH04BySvMNF3B1YEdDfV1x G0aXfcrolYplwQGvwPYyMhscMlJ7mWfmHXmJ7s1vq6CWm8+5FEa6utFxJ7/o0LYbcu4I Nptd+wtIK6Y9sGRBPm9I4kJWJiPPmOrv5JTPzQy2OEAZ+pR4m7RQ5lPkbO3eW9uwwxq0 jJbu+/MtLgIqx0YBDcXrbac85qo1Rclls11DwOOix/cTHAAtloRIjAs145pGTb7whF8v SgaMOkV9evEcV9yBytCpK84AFRIUFpUC3pLqSqST2NOCSM5Wgo0Nsr6kRd5UmQcsLaN1 TZ1A== X-Gm-Message-State: ALoCoQmPVWbeTOkdDONRpgMDIgu+XvGbVLCnysfWlSHvRCQru7L4QxZUAV2S6ul/JrZu/Wt59hTr X-Received: by 10.180.108.101 with SMTP id hj5mr2820865wib.3.1417666412166; Wed, 03 Dec 2014 20:13:32 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.134 with SMTP id b6ls116913laa.27.gmail; Wed, 03 Dec 2014 20:13:31 -0800 (PST) X-Received: by 10.152.170.131 with SMTP id am3mr7154977lac.15.1417666411944; Wed, 03 Dec 2014 20:13:31 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id c1si24671743lbv.23.2014.12.03.20.13.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:31 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id hs14so8816996lab.25 for ; Wed, 03 Dec 2014 20:13:31 -0800 (PST) X-Received: by 10.152.87.100 with SMTP id w4mr7193516laz.71.1417666411868; Wed, 03 Dec 2014 20:13:31 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp781060lbc; Wed, 3 Dec 2014 20:13:31 -0800 (PST) X-Received: by 10.66.151.162 with SMTP id ur2mr14491734pab.115.1417666410290; Wed, 03 Dec 2014 20:13:30 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id df1si18139882pdb.237.2014.12.03.20.13.29 for ; Wed, 03 Dec 2014 20:13:30 -0800 (PST) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752991AbaLDEN3 (ORCPT + 12 others); 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-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: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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))) {