fs/binfmt_elf: Remove unneeded kmalloc() return value casts
Subsystems (2)
PATCH 1/6 fs/binfmt_elf: Remove unneeded kmalloc() return value casts
Remove unneeded casts of kmalloc() return value in binfmt_elf.
Signed-off-by Jesper Juhl <[email protected]>
---
fs/binfmt_elf.c | 2 +- fs/binfmt_elf_fdpic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
fs/binfmt_elf.c +1 -1
@@ -616,7 +616,7 @@ static int load_elf_binary(struct linux_ goto out_free_file; retval = -ENOMEM ; - elf_interpreter = (char *)kmalloc (elf_ppnt->p_filesz, + elf_interpreter =kmalloc (elf_ppnt->p_filesz,GFP_KERNEL );if (!elf_interpreter) goto out_free_file;
fs/binfmt_elf_fdpic.c +1 -1
@@ -187,7 +187,7 @@ static int load_elf_fdpic_binary(struct goto error;/* read the name of the interpreter into memory */ - interpreter_name = (char *)kmalloc (phdr->p_filesz,GFP_KERNEL ); + interpreter_name =kmalloc (phdr->p_filesz,GFP_KERNEL );if (!interpreter_name) goto error;