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: 5402391 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CEDB59F47A for ; Fri, 28 Nov 2014 09:45:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E718720142 for ; Fri, 28 Nov 2014 09:45:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1EA1F2013D for ; Fri, 28 Nov 2014 09:45:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751715AbaK1JpI (ORCPT ); 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=u2GyK4O4nJs4IhuPOEShsd4q86W98x13dQXzVO6a3ZY=; b=krYw5GpSMgpp0WaxqZt6Njw7kr/VinEd0mGWXYOcklzqx6/0S6jifpvTXQRvl9ESR+ aUePA5DqTbyamX9awFUJgHiTaWmbkcmavelC0pQ4MZPdnt0z0ulPtP/NFaHb4oZhvAXq SDCTb1L+aINB2N50d26u5dFaJqA2QnSeghKJUCNn5kIGERZ+ZDEvHI9Tg1aQOYh2zAJQ 3LViirPZhDUdADfZbYCoCX+WItuyS3zF62wKTY6om8ZVPsuFA5vpFXbW6t56dI8giKXl hVlss908EVsvGQ/fdlde07BLgGCQ67EAZ6rcQ144F4MWqraCQquboKYizml4PKP2+D5v OXjw== X-Gm-Message-State: ALoCoQlAvuWnkJ25F6UIHb2TkYLfwImSsnBXxm7wI4leAX90gNPHzymx58XHDmlOc413iTuMSrHd 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: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);