Commit 8cd3ac3a authored by WANG Cong's avatar WANG Cong Committed by Linus Torvalds

fs/exec.c: make do_coredump() void

No one cares do_coredump()'s return value, and also it seems that it
is also not necessary. So make it void.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: default avatarWANG Cong <wangcong@zeuux.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4cb0e11b
...@@ -1686,7 +1686,7 @@ int get_dumpable(struct mm_struct *mm) ...@@ -1686,7 +1686,7 @@ int get_dumpable(struct mm_struct *mm)
return (ret >= 2) ? 2 : ret; return (ret >= 2) ? 2 : ret;
} }
int do_coredump(long signr, int exit_code, struct pt_regs * regs) void do_coredump(long signr, int exit_code, struct pt_regs *regs)
{ {
struct core_state core_state; struct core_state core_state;
char corename[CORENAME_MAX_SIZE + 1]; char corename[CORENAME_MAX_SIZE + 1];
...@@ -1842,5 +1842,5 @@ int do_coredump(long signr, int exit_code, struct pt_regs * regs) ...@@ -1842,5 +1842,5 @@ int do_coredump(long signr, int exit_code, struct pt_regs * regs)
put_cred(cred); put_cred(cred);
coredump_finish(mm); coredump_finish(mm);
fail: fail:
return retval; return;
} }
...@@ -107,7 +107,7 @@ extern int setup_arg_pages(struct linux_binprm * bprm, ...@@ -107,7 +107,7 @@ extern int setup_arg_pages(struct linux_binprm * bprm,
extern int bprm_mm_init(struct linux_binprm *bprm); extern int bprm_mm_init(struct linux_binprm *bprm);
extern int copy_strings_kernel(int argc,char ** argv,struct linux_binprm *bprm); extern int copy_strings_kernel(int argc,char ** argv,struct linux_binprm *bprm);
extern void install_exec_creds(struct linux_binprm *bprm); extern void install_exec_creds(struct linux_binprm *bprm);
extern int do_coredump(long signr, int exit_code, struct pt_regs * regs); extern void do_coredump(long signr, int exit_code, struct pt_regs *regs);
extern int set_binfmt(struct linux_binfmt *new); extern int set_binfmt(struct linux_binfmt *new);
extern void free_bprm(struct linux_binprm *); extern void free_bprm(struct linux_binprm *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment