]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/proc/vmcore.c
niu: Use DMA_BIT_MASK(44) instead of deprecated DMA_44BIT_MASK
[karo-tx-linux.git] / fs / proc / vmcore.c
index 5edcc3f92ba746496da35c23964c19e5518810b4..0872afa58d3987682bbdb4afdfdf5e24a95669f7 100644 (file)
@@ -166,12 +166,7 @@ static const struct file_operations proc_vmcore_operations = {
 
 static struct vmcore* __init get_new_element(void)
 {
-       struct vmcore *p;
-
-       p = kmalloc(sizeof(*p), GFP_KERNEL);
-       if (p)
-               memset(p, 0, sizeof(*p));
-       return p;
+       return kzalloc(sizeof(struct vmcore), GFP_KERNEL);
 }
 
 static u64 __init get_vmcore_size_elf64(char *elfptr)