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: 41677 Return-Path: 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 ; Fri, 28 Nov 2014 09:45:20 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id p9sf3885399lbv.5 for ; 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 (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 ; 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 ; 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 + 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 ); 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-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: 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.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: , List-Help: , List-Archive: List-Unsubscribe: , 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;