From patchwork Thu Dec 4 04:11:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 41892 Return-Path: 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 E9AA425E88 for ; Thu, 4 Dec 2014 04:13:24 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id f15sf10507776lbj.7 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: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=//KKP6/VQD3mF6mOm6yVwDHCPY9McElki7d7U3D3/+I=; b=DQ4ivpIJdOgjTfp0hPi6Mf/WnRF7OICiTMdrcLMNfVQ9FCjF6fQzWh25uOsd6eyyIn QEdZd5ijvZTmdcrSzeLbqRyduw56KGEGF9P3Fc22PsGtN9fpiGqrroQggsteRyKKxrd0 e1ue+Um1aNrKXQDfkXuEbsarPtRxDhdFZtKejA0gOwh2LiInWh599LmAr6FkXaPUqNj7 MoJohfpofXojXAnsq1NG7SO8G5gsRQlLhqDObsyh9NdPyceallb4yoi+yxR6mupR9kWm vrIVXzupqfoEr1uAKC0UNs4vqSfr7cktiGqEECfiYG1VWUpwQ1pTP7tlmhVeqnWsU6Pb 6cxA== X-Gm-Message-State: ALoCoQmirSG6+A4g2KYhaBVA5DRFFPNMu7JKL2zVBYW74QHVZNodNEin4KpVWMgq5BQaLQL/Da4c X-Received: by 10.112.169.101 with SMTP id ad5mr1780940lbc.1.1417666403954; Wed, 03 Dec 2014 20:13:23 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.226 with SMTP id z2ls231820lal.5.gmail; Wed, 03 Dec 2014 20:13:23 -0800 (PST) X-Received: by 10.112.14.69 with SMTP id n5mr7335977lbc.34.1417666403420; Wed, 03 Dec 2014 20:13:23 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id y9si13376900laj.5.2014.12.03.20.13.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:23 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id hs14so13762953lab.36 for ; Wed, 03 Dec 2014 20:13:23 -0800 (PST) X-Received: by 10.152.43.12 with SMTP id s12mr7073593lal.67.1417666403342; Wed, 03 Dec 2014 20:13:23 -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 ew9csp781044lbc; Wed, 3 Dec 2014 20:13:20 -0800 (PST) X-Received: by 10.69.14.33 with SMTP id fd1mr22313523pbd.90.1417666399428; Wed, 03 Dec 2014 20:13:19 -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.18 for ; Wed, 03 Dec 2014 20:13:19 -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 S1752980AbaLDENR (ORCPT + 12 others); Wed, 3 Dec 2014 23:13:17 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:47808 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752974AbaLDENR (ORCPT ); Wed, 3 Dec 2014 23:13:17 -0500 Received: by mail-pa0-f46.google.com with SMTP id lj1so17071600pab.19 for ; Wed, 03 Dec 2014 20:13:16 -0800 (PST) X-Received: by 10.68.162.225 with SMTP id yd1mr21896487pbb.53.1417666396751; Wed, 03 Dec 2014 20:13:16 -0800 (PST) Received: from localhost ([122.166.92.172]) by mx.google.com with ESMTPSA id w8sm24379121pbt.71.2014.12.03.20.13.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:16 -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 08/26] thermal: cpu_cooling: Pass variable instead of its type to sizeof() Date: Thu, 4 Dec 2014 09:41:50 +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.215.49 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: , Just following coding guidelines here. Signed-off-by: Viresh Kumar --- drivers/thermal/cpu_cooling.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index a5a9317..5378561 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -476,8 +476,7 @@ __cpufreq_cooling_register(struct device_node *np, return ERR_PTR(-EINVAL); } } - cpufreq_dev = kzalloc(sizeof(struct cpufreq_cooling_device), - GFP_KERNEL); + cpufreq_dev = kzalloc(sizeof(*cpufreq_dev), GFP_KERNEL); if (!cpufreq_dev) return ERR_PTR(-ENOMEM);