From patchwork Fri Nov 28 09:44:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 41675 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7B0D1244C2 for ; Fri, 28 Nov 2014 09:45:12 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id r20sf4054774wiv.9 for ; Fri, 28 Nov 2014 01:45:11 -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=n7D2nO2kYJfGgbBPpbzSM6axqycm1zYI+4zkZfIhHiE=; b=jpIspaB+ZJFf+UG89YNT+PZpuAyobNd+H+NUjILwfXr0gWtzFSK1ZgRMA2rGuspb1d etnREjJeX2rHoNeQn/+H5WNKsaGg6QcSXgPKHoqiMHVWXb0/T1DHCn7rBg22Lw2MhYad PV6Oc8aW/GhmFcpDYz8t5ZeiaKgjkXf1rKTtJb6/PNf5Hyc3gsGIaD6YEcqe+iylE5od LHvJDhUkYL8n3wQ/v+2OEcoMLYCa63w8glDGWIgvoCwTtAVeyGNTVJDVUsNCo5eXlxOy AP0OHRVCy7DezazK9H0mqWw7zmWorJvuXv/5lPKYDXJWcxD7lJxK6ooh51/BXERK7T4q biRw== X-Gm-Message-State: ALoCoQlGKHS53M5yhgBZF9MZgnWu6D+wipuBupxfTkNLQwndPdrFPmkaw9swQga7gNKL3zWdtsI5 X-Received: by 10.180.89.211 with SMTP id bq19mr4513159wib.4.1417167911825; Fri, 28 Nov 2014 01:45:11 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.11.131 with SMTP id ei3ls738142lad.106.gmail; Fri, 28 Nov 2014 01:45:11 -0800 (PST) X-Received: by 10.152.37.100 with SMTP id x4mr43089685laj.22.1417167911672; Fri, 28 Nov 2014 01:45:11 -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 9si9436218lak.97.2014.11.28.01.45.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Nov 2014 01:45:11 -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 hs14so5263768lab.22 for ; Fri, 28 Nov 2014 01:45:11 -0800 (PST) X-Received: by 10.152.6.228 with SMTP id e4mr42979633laa.71.1417167911570; Fri, 28 Nov 2014 01:45:11 -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 ew9csp60414lbc; Fri, 28 Nov 2014 01:45:10 -0800 (PST) X-Received: by 10.66.171.37 with SMTP id ar5mr16838457pac.69.1417167909844; Fri, 28 Nov 2014 01:45:09 -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.09 for ; Fri, 28 Nov 2014 01:45:09 -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 S1751715AbaK1JpI (ORCPT + 12 others); Fri, 28 Nov 2014 04:45:08 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:39790 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751705AbaK1JpH (ORCPT ); Fri, 28 Nov 2014 04:45:07 -0500 Received: by mail-pa0-f48.google.com with SMTP id rd3so6523209pab.7 for ; Fri, 28 Nov 2014 01:45:06 -0800 (PST) X-Received: by 10.68.175.196 with SMTP id cc4mr71511579pbc.147.1417167906748; Fri, 28 Nov 2014 01:45:06 -0800 (PST) Received: from localhost ([122.167.111.40]) by mx.google.com with ESMTPSA id mr4sm9383704pdb.64.2014.11.28.01.45.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 28 Nov 2014 01:45:06 -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 08/26] cpu_cooling: Pass variable instead of its type to sizeof() Date: Fri, 28 Nov 2014 15:14:02 +0530 Message-Id: <1a0d2430eb52b55fdb8f82c4cbbb8b4038a105ec.1417167599.git.viresh.kumar@linaro.org> 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 def0f21..59725d8 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -468,8 +468,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(*cool_dev), GFP_KERNEL); if (!cpufreq_dev) return ERR_PTR(-ENOMEM);