From patchwork Fri Nov 28 09:44:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 5402411 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 28F11BEEA8 for ; Fri, 28 Nov 2014 09:45:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 52E5D20145 for ; Fri, 28 Nov 2014 09:45:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8285220123 for ; Fri, 28 Nov 2014 09:45:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751550AbaK1JpP (ORCPT ); Fri, 28 Nov 2014 04:45:15 -0500 Received: from mail-pd0-f173.google.com ([209.85.192.173]:61948 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751735AbaK1JpO (ORCPT ); Fri, 28 Nov 2014 04:45:14 -0500 Received: by mail-pd0-f173.google.com with SMTP id ft15so6423159pdb.32 for ; Fri, 28 Nov 2014 01:45:14 -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=azPY1fgg1IB+0jbS7pGTiMcrdjJsXZE/smi00jhK0+E=; b=m9GUnuGcAqwFgS0sZ0TJnua4LsehHE+xOvnqcO6ikzvtBfSKr6x7YPEzK8IngzGr4Z KQ5Xrg60E61Gydz9SiWoqSI9GVX6rIRAqZQf1tV8lTGJhzxD8hDe0UB70cINXvhq5kEn EWeJE+amYFFVf/El4pACJ0ahAB7xuKScMzhF+Nuvd4ok7Pr9EJH+CFPcPZ9+WNbjvQCG N9HWOGQg5lzClKUcWMXZlTutL4vaGdKwCfSZwz2gngP4DQDsNN1nLU4CDVSkIb6oqtvJ 127e38pa+qc2pzrbZ8lI3BXpV/xjfm7tKKxOxq8XIKGZGnMpWKe9NFug+h0R8bn48GlT stdw== X-Gm-Message-State: ALoCoQmrOTtQYp6viOWrETMkwA5FE3yjBLIusNkm+R3+X0rHnCpYqwHC5v7mTlbRdNFW6775GBR4 X-Received: by 10.70.26.35 with SMTP id i3mr72395724pdg.84.1417167914327; Fri, 28 Nov 2014 01:45:14 -0800 (PST) Received: from localhost ([122.167.111.40]) by mx.google.com with ESMTPSA id o17sm9413029pdn.33.2014.11.28.01.45.13 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 28 Nov 2014 01:45:13 -0800 (PST) From: Viresh Kumar To: linux-pm@vger.kernel.org, edubezval@gmail.com Cc: linaro-kernel@lists.linaro.org, rui.zhang@intel.com, Viresh Kumar Subject: [PATCH 10/26] cpu_cooling: no need to set cpufreq_dev to NULL Date: Fri, 28 Nov 2014 15:14:04 +0530 Message-Id: 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 cf9d1de..bb11dd4 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -448,7 +448,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;