Message ID | 21a29c0ebea4678b6922a237fd03b5cd2a55b5a5.1417664938.git.viresh.kumar@linaro.org |
---|---|
State | Accepted |
Commit | 5d3bdb8998e066fe270f2f71db7163d5ac40d989 |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBB2F676RQKGQE7EAL3MY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A984025E88 for <linaro@patches.linaro.org>; Thu, 4 Dec 2014 04:13:29 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id f15sf10497466lbj.11 for <linaro@patches.linaro.org>; 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: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=is2Q27Gti2WIS1nc2BsjgM3VJEizM71SQt9WvThjCcQ=; b=TSCdIwH29KT+Uw+xwIgG9MUlmn0W11rGqK6GmJrHuZQO2+HxseU+Habm8tYi+MUw+g nbJHB8bIu0/+6+dl6NFhCAOPgWC+uQKRbJGkEBpwilSY5diEHJT8RgEcPjPmapUffNL/ 1ehebQUK9sLKlU4TYpDHi2dX1PUQY5cp0mrpDdtLJHsY5grwV/HiLkJGlaTYg5pw7vS8 51kPAkIHqsZMuMoBTnwkcms798oU+pKHTwoF8p9uEn+Sf9hYOgqAANkvcZPvRe9VrmbE EQm3nU0UUW6TJCHiIl28919KkQ8ljNXXASUEiASkAH6tVysCzrFGcEYWEGAP4wN1yzBP 7Kpg== X-Gm-Message-State: ALoCoQkU8l75tq3+GuFLUey+qtN4MOU5fl75Dme8HYLBy9N3Zsk5TzePuDtWZYklnWXGh8NtRFxN X-Received: by 10.180.98.165 with SMTP id ej5mr18634988wib.1.1417666408672; Wed, 03 Dec 2014 20:13:28 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.229 with SMTP id p5ls246509laf.4.gmail; Wed, 03 Dec 2014 20:13:28 -0800 (PST) X-Received: by 10.152.87.67 with SMTP id v3mr6964992laz.97.1417666408248; Wed, 03 Dec 2014 20:13:28 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id ac6si21443276lbc.111.2014.12.03.20.13.28 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:28 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id z12so13459478lbi.18 for <patchwork-forward@linaro.org>; Wed, 03 Dec 2014 20:13:28 -0800 (PST) X-Received: by 10.152.3.67 with SMTP id a3mr7291484laa.56.1417666408135; Wed, 03 Dec 2014 20:13:28 -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 ew9csp781055lbc; Wed, 3 Dec 2014 20:13:27 -0800 (PST) X-Received: by 10.66.142.166 with SMTP id rx6mr15046430pab.33.1417666406523; Wed, 03 Dec 2014 20:13:26 -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.25 for <multiple recipients>; Wed, 03 Dec 2014 20:13:26 -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 S1752984AbaLDENZ (ORCPT <rfc822;amit.pundir@linaro.org> + 12 others); 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 <rfc822;linux-pm@vger.kernel.org>); Wed, 3 Dec 2014 23:13:24 -0500 Received: by mail-pd0-f169.google.com with SMTP id z10so1716317pdj.0 for <linux-pm@vger.kernel.org>; Wed, 03 Dec 2014 20:13:24 -0800 (PST) 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 <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:23 -0800 (PST) From: Viresh Kumar <viresh.kumar@linaro.org> 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 <viresh.kumar@linaro.org> 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: <cover.1417664938.git.viresh.kumar@linaro.org> References: <cover.1417664938.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1417664938.git.viresh.kumar@linaro.org> References: <cover.1417664938.git.viresh.kumar@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> 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.217.173 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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;
It will be overwritten soon with return value of kzalloc(). Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/thermal/cpu_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)