linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/18] arm: remove cast for kzalloc return value
@ 2013-03-12  4:42 Zhang Yanfei
  2013-03-12  4:47 ` [PATCH 02/18] ia64: remove cast for kmalloc " Zhang Yanfei
                   ` (16 more replies)
  0 siblings, 17 replies; 26+ messages in thread
From: Zhang Yanfei @ 2013-03-12  4:42 UTC (permalink / raw)
  To: linux, Andrew Morton; +Cc: linux-kernel@vger.kernel.org, linux-arm-kernel

remove cast for kzalloc return value.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
---
 arch/arm/kernel/topology.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2013-03-12 16:32 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-12  4:42 [PATCH 01/18] arm: remove cast for kzalloc return value Zhang Yanfei
2013-03-12  4:47 ` [PATCH 02/18] ia64: remove cast for kmalloc " Zhang Yanfei
2013-03-12  4:54 ` [PATCH 03/18] powerpc: remove cast for kmalloc/kzalloc " Zhang Yanfei
2013-03-12  4:58 ` [PATCH 04/18] x86: platform: mrst: remove cast for kmalloc " Zhang Yanfei
2013-03-12  8:50   ` [tip:x86/platform] x86/platform/intel/mrst: Remove cast for kmalloc() " tip-bot for Zhang Yanfei
2013-03-12  5:03 ` [PATCH 05/18] driver: staging: csr: remove cast for kmalloc " Zhang Yanfei
2013-03-12  5:07 ` [PATCH 06/18] driver: gpu: drm: i915: remove cast for kzalloc " Zhang Yanfei
2013-03-12  5:10 ` [PATCH 07/18] driver: hv: remove cast for kmalloc " Zhang Yanfei
2013-03-12  5:13 ` [PATCH 08/18] driver: isdn: capi: " Zhang Yanfei
2013-03-12 15:41   ` David Miller
2013-03-12  5:15 ` [PATCH 09/18] driver: isdn: hisax: remove cast for kmalloc/kzalloc " Zhang Yanfei
2013-03-12 15:41   ` David Miller
2013-03-12  5:18 ` [PATCH 10/18] driver: s390: block: remove cast for kzalloc " Zhang Yanfei
2013-03-12  7:22   ` Heiko Carstens
2013-03-12  5:22 ` [PATCH 11/18] driver: s390: net: " Zhang Yanfei
2013-03-12  7:25   ` Heiko Carstens
2013-03-12  5:25 ` [PATCH 12/18] driver: scsi: remove cast for kmalloc/kzalloc " Zhang Yanfei
2013-03-12  9:27   ` James Bottomley
2013-03-12 16:32     ` Joe Perches
2013-03-12  5:27 ` [PATCH 13/18] driver: tty: serial: remove cast for kzalloc " Zhang Yanfei
2013-03-12  5:29 ` [PATCH 14/18] driver: tty: vt: remove cast for kmalloc " Zhang Yanfei
2013-03-12  5:33 ` [PATCH 15/18] driver: usb: storage: " Zhang Yanfei
2013-03-12  5:35 ` [PATCH 16/18] fs: befs: " Zhang Yanfei
2013-03-12  5:37 ` [PATCH 17/18] fs: ufs: " Zhang Yanfei
2013-03-12  5:39 ` [PATCH 18/18] net: sctp: remove cast for kmalloc/kzalloc " Zhang Yanfei
2013-03-12 11:35   ` Neil Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).