summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-03-11 18:54:06 +0000
committerMichael Ellerman <michael@ellerman.id.au>2013-04-18 13:03:56 +1000
commitc843be8a5480c04a18410aaf32d5a339a8b3a61b (patch)
tree3ed27b007435be430ab483752dcbdbe8d0e7b018 /arch/powerpc/kernel
parentc0b52c143ee46c5922b5aa5c48c00145b5296441 (diff)
downloadlinux-c843be8a5480c04a18410aaf32d5a339a8b3a61b.tar.gz
linux-c843be8a5480c04a18410aaf32d5a339a8b3a61b.tar.bz2
linux-c843be8a5480c04a18410aaf32d5a339a8b3a61b.zip
powerpc: remove cast for kmalloc/kzalloc return value
remove cast for kmalloc/kzalloc return value. Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/nvram_64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nvram_64.c
index bec1e930ed73..48fbc2b97e95 100644
--- a/arch/powerpc/kernel/nvram_64.c
+++ b/arch/powerpc/kernel/nvram_64.c
@@ -511,8 +511,7 @@ int __init nvram_scan_partitions(void)
"detected: 0-length partition\n");
goto out;
}
- tmp_part = (struct nvram_partition *)
- kmalloc(sizeof(struct nvram_partition), GFP_KERNEL);
+ tmp_part = kmalloc(sizeof(struct nvram_partition), GFP_KERNEL);
err = -ENOMEM;
if (!tmp_part) {
printk(KERN_ERR "nvram_scan_partitions: kmalloc failed\n");