From patchwork Sun Mar 10 13:35:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihai Stirbat X-Patchwork-Id: 2244731 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 2E9253FC8A for ; Sun, 10 Mar 2013 13:40:13 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UEgPx-00078I-H3; Sun, 10 Mar 2013 13:36:01 +0000 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UEgPt-000781-Lp for linux-arm-kernel@lists.infradead.org; Sun, 10 Mar 2013 13:35:58 +0000 Received: by mail-we0-f173.google.com with SMTP id x51so2545077wey.4 for ; Sun, 10 Mar 2013 06:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=LX+jN2wJIy1VZ1af8IWTmRxb6uAFdDAJN9Eu/Wb50l4=; b=JX7yluBZNgv4LjBxIyQzjhPwQ+1D3/iifNM3qoxzExH8EK7u4cpFV+X6Zj/b0FxRyS 4++xtTvivOp3C+V5Nu54Cp8RRswI0Ih6ekTqp5bDcQytQyrEWVplnWaYpvnuWzyzjpR+ thGnbiq7V1HgmowDQQwpkmVhdVZYC5C1Wc/NeplnKPRRZLHIqnWOUeZbVw06mImeVDcm mWVHxFvFdS2iwDdah/XfSWnMnv/UWkiKiQGjiIVrSZqojr2j589pCqbW+XcpcxLU2tuM f9VHYHDMSv3+8WJDFKgCjWULca4ABpJ/8NgHi/1jPOayYm1QQ1U1OGPEW0Qw4lsb8hvE 0EPg== X-Received: by 10.194.173.167 with SMTP id bl7mr13845349wjc.50.1362922552634; Sun, 10 Mar 2013 06:35:52 -0700 (PDT) Received: from mjolnir.labs.cs.pub.ro ([141.85.225.204]) by mx.google.com with ESMTPS id ed6sm10622564wib.9.2013.03.10.06.35.50 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 10 Mar 2013 06:35:51 -0700 (PDT) From: Mihai Stirbat To: linux@arm.linux.org.uk Subject: [PATCH] topology: removed kzalloc return value cast Date: Sun, 10 Mar 2013 15:35:35 +0200 Message-Id: <1362922535-25172-1-git-send-email-mihai.stirbat@gmail.com> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130310_093557_910356_D042DC37 X-CRM114-Status: UNSURE ( 8.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (mihai.stirbat[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: lorenzo.pieralisi@arm.com, vincent.guittot@linaro.org, a.p.zijlstra@chello.nl, Mihai Stirbat , linux-kernel@vger.kernel.org, namhyung@kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Signed-off-by: Mihai Stirbat Acked-by: Vincent Guittot --- arch/arm/kernel/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index 79282eb..f10316b 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -100,7 +100,7 @@ static void __init parse_dt_topology(void) int alloc_size, cpu = 0; alloc_size = nr_cpu_ids * sizeof(struct cpu_capacity); - cpu_capacity = (struct cpu_capacity *)kzalloc(alloc_size, GFP_NOWAIT); + cpu_capacity = kzalloc(alloc_size, GFP_NOWAIT); while ((cn = of_find_node_by_type(cn, "cpu"))) { const u32 *rate, *reg;