From patchwork Thu Dec 4 04:11:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 5435091 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9A53EBEEA8 for ; Thu, 4 Dec 2014 04:13:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CE22C20295 for ; Thu, 4 Dec 2014 04:13:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C6AD220266 for ; Thu, 4 Dec 2014 04:13:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752984AbaLDENZ (ORCPT ); Wed, 3 Dec 2014 23:13:25 -0500 Received: from mail-pd0-f169.google.com ([209.85.192.169]:54165 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752981AbaLDENY (ORCPT ); Wed, 3 Dec 2014 23:13:24 -0500 Received: by mail-pd0-f169.google.com with SMTP id z10so1716317pdj.0 for ; Wed, 03 Dec 2014 20:13:24 -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=8htV20RV2zijZdbtpDBYPsUHnOku0sJdWCaa6AhQam8=; b=jUHBfPXnvm0BHVBRjuiU54IKyCG26fszLk5rT2gKEXgB6+RSvXNsBVW45XG7QrgbY/ 4uHun9/ooztYiYGSazDiXITFl352HTDIV2XqJv1SOmnBNf8pWs9mB0OK1TUdmRRrTp+s MQ8B97Pt2/xmWx7DbD9aQA4xxt2CTDjBcubBtFvmvkCTRvkxrGyJUv5vtHXqiSCEeZlv ceDQQkN39BEJcFzwy66Bkjq7Je6QZGif67Cx7Pt9AFwqRjc2eCrOsDp54iBEcbP9D0xI e+VfNSvzPsMToba8bq9m2IVKskC69f5Cpxt8mZwS975Kdw4qElin1VyEstavTFHTQcJ9 xMFw== X-Gm-Message-State: ALoCoQn1LsRcYd0H7ofRd1E05WDGO6lBWJl0SH8yFw0VXs6V2YplVBIDZ7MoPPZSn9coQEdV2NqV X-Received: by 10.70.91.99 with SMTP id cd3mr14341067pdb.117.1417666404522; Wed, 03 Dec 2014 20:13:24 -0800 (PST) Received: from localhost ([122.166.92.172]) by mx.google.com with ESMTPSA id nb3sm24564317pdb.18.2014.12.03.20.13.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:23 -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 10/26] thermal: cpu_cooling: no need to set cpufreq_dev to NULL Date: Thu, 4 Dec 2014 09:41:52 +0530 Message-Id: <21a29c0ebea4678b6922a237fd03b5cd2a55b5a5.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 It will be overwritten soon with return value of kzalloc(). 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 30e2ecb..c144493 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -451,7 +451,7 @@ __cpufreq_cooling_register(struct device_node *np, const struct cpumask *clip_cpus) { struct thermal_cooling_device *cool_dev; - struct cpufreq_cooling_device *cpufreq_dev = NULL; + struct cpufreq_cooling_device *cpufreq_dev; unsigned int min = 0, max = 0; char dev_name[THERMAL_NAME_LENGTH]; int ret = 0, i;