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: 5435071 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4AFA0BEEA8 for ; Thu, 4 Dec 2014 04:13:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7BC1620266 for ; Thu, 4 Dec 2014 04:13:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AF64D20265 for ; Thu, 4 Dec 2014 04:13:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752980AbaLDENR (ORCPT ); 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-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=oPIbM0cQquGDfNCLwmuugnRlmGlYPXa3CMypE4EUb1M=; b=QTfd2X3zJoTxEJ7MWoTVLWobPshk6z2fLYZ4P9YIPIyjMaRb6O64D5Bar/pefJfybL p9Lda6anzmrhy3bzDDsigeec0YT4cJYS9IiDy/icAecMe0dyOSIt47a2+W+dAci07c+Y oCO7b+9ddsYwT9SkoR9HJNNHfHSNJ7CdbfFPoGgBCRw7E1aJzGyACvRjSVY6qA5x4E7g taZRi2TJvOvkQjfw9tFKctSIMX3DfkZ5r/U1uSJzzjr20dIRyUCb33b7ccW3ol1wq71w wyvQpy29Oh0pdvkZ6dSJokPfpM9/HG9nNTuPer11IY5h4+bqRBXRBKPBiuZX33kxPo4g RSPA== X-Gm-Message-State: ALoCoQlXIgln1ZhANBVZGtTxTlXilUN4kGxSsu802omRIIcZW1gH/24u3Bl/+0b8Ot3O4H4RTQrB 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: 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 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);