[PATCH] fs/binfmt_elf: Remove unneeded kmalloc() return value casts

Remove unneeded casts of kmalloc() return value in binfmt_elf.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Jesper Juhl and committed by
Linus Torvalds
792db3af 352d768b

+2 -2
+1 -1
fs/binfmt_elf.c
··· 622 622 goto out_free_file; 623 623 624 624 retval = -ENOMEM; 625 - elf_interpreter = (char *) kmalloc(elf_ppnt->p_filesz, 625 + elf_interpreter = kmalloc(elf_ppnt->p_filesz, 626 626 GFP_KERNEL); 627 627 if (!elf_interpreter) 628 628 goto out_free_file;
+1 -1
fs/binfmt_elf_fdpic.c
··· 187 187 goto error; 188 188 189 189 /* read the name of the interpreter into memory */ 190 - interpreter_name = (char *) kmalloc(phdr->p_filesz, GFP_KERNEL); 190 + interpreter_name = kmalloc(phdr->p_filesz, GFP_KERNEL); 191 191 if (!interpreter_name) 192 192 goto error; 193 193