Message ID | c2f2d850eab62ba05f5c5acc48df09e74e50d5cc.1417167599.git.viresh.kumar@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBL4I4GRQKGQELTXY2XI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7189E244C2 for <linaro@patches.linaro.org>; Fri, 28 Nov 2014 09:45:20 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id p9sf3885399lbv.5 for <linaro@patches.linaro.org>; Fri, 28 Nov 2014 01:45:19 -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=ndrqbNFOKEwP8eHwvwByfUnGmKHZSebjON89PqwK/2o=; b=DWsH+o+SZvEtwRHzBmtVp0M9oYP9FvGUqVFAigziZCeQCQXRDWiViRNgXNdbp3BMKw HvC/Gm9hkQCfIXH/VOPMIXorYh2yJbxoUSawYN8jkZJeUD6BcQ2j4+UD0bYqKRlK5v+p WRxONRc3TmBRkmYT8rMRC2klxKE0Z3Y2+qj1frM/42EhgOTsTgV7zYZSHVI1eflON05O lncyX/IPP6Ey7rBfTWIWFbEo0hL8gme3nD4JpckbJ8/Qx5kMdT5pnsEP0XI+luBOaRfW qTljkJ76XBgBUM6n15i0G9oHd1VyPwW70wvq8hADY9DcsU0ehS8KCZ/idJbUPdNwL0+5 mZCQ== X-Gm-Message-State: ALoCoQlobFkmoxxWqE4+CzoAvD9YKFiU/BQzc5Shtoe2oNtjRec/+jaWaG9Ezrpq2U60AEtWRsk+ X-Received: by 10.112.89.195 with SMTP id bq3mr12065820lbb.9.1417167919114; Fri, 28 Nov 2014 01:45:19 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.1 with SMTP id bc1ls966693lab.24.gmail; Fri, 28 Nov 2014 01:45:18 -0800 (PST) X-Received: by 10.152.9.7 with SMTP id v7mr43065472laa.40.1417167918909; Fri, 28 Nov 2014 01:45:18 -0800 (PST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id iy10si9459536lbc.71.2014.11.28.01.45.18 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Nov 2014 01:45:18 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id p9so5285097lbv.14 for <patchwork-forward@linaro.org>; Fri, 28 Nov 2014 01:45:18 -0800 (PST) X-Received: by 10.112.235.196 with SMTP id uo4mr42329312lbc.66.1417167918828; Fri, 28 Nov 2014 01:45:18 -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 ew9csp60425lbc; Fri, 28 Nov 2014 01:45:18 -0800 (PST) X-Received: by 10.66.194.195 with SMTP id hy3mr13783087pac.125.1417167917258; Fri, 28 Nov 2014 01:45:17 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vj10si15336419pbc.138.2014.11.28.01.45.16 for <multiple recipients>; Fri, 28 Nov 2014 01:45:17 -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 S1751550AbaK1JpP (ORCPT <rfc822;amit.pundir@linaro.org> + 12 others); 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 <rfc822;linux-pm@vger.kernel.org>); Fri, 28 Nov 2014 04:45:14 -0500 Received: by mail-pd0-f173.google.com with SMTP id ft15so6423159pdb.32 for <linux-pm@vger.kernel.org>; Fri, 28 Nov 2014 01:45:14 -0800 (PST) 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 <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 28 Nov 2014 01:45:13 -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, Viresh Kumar <viresh.kumar@linaro.org> 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: <c2f2d850eab62ba05f5c5acc48df09e74e50d5cc.1417167599.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.3.693.g996b0fd In-Reply-To: <cover.1417167599.git.viresh.kumar@linaro.org> References: <cover.1417167599.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1417167599.git.viresh.kumar@linaro.org> References: <cover.1417167599.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.169 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 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;
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(-)