Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f6b450d489f2fb4e909447beacad64edb8aa0cda Commit: f6b450d489f2fb4e909447beacad64edb8aa0cda Parent: e4dc1b14d8dc57c3975bf69740e4f5cda6bfba09 Author: Alexey Dobriyan <[EMAIL PROTECTED]> AuthorDate: Tue Oct 16 23:26:04 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Wed Oct 17 08:42:46 2007 -0700
Make unregister_binfmt() return void list_del() hardly can fail, so checking for return value is pointless (and current code always return 0). Nobody really cared that return value anyway. Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/ia64/ia32/binfmt_elf32.c | 2 +- fs/exec.c | 3 +-- include/linux/binfmts.h | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/ia64/ia32/binfmt_elf32.c b/arch/ia64/ia32/binfmt_elf32.c index 1cfab32..f6ae3ec 100644 --- a/arch/ia64/ia32/binfmt_elf32.c +++ b/arch/ia64/ia32/binfmt_elf32.c @@ -240,7 +240,7 @@ static int __init check_elf32_binfmt(void) { if (cpu_uses_ia32el()) { printk("Please use IA-32 EL for executing IA-32 binaries\n"); - return unregister_binfmt(&elf_format); + unregister_binfmt(&elf_format); } return 0; } diff --git a/fs/exec.c b/fs/exec.c index 65825bd..550ae9b 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -81,12 +81,11 @@ int register_binfmt(struct linux_binfmt * fmt) EXPORT_SYMBOL(register_binfmt); -int unregister_binfmt(struct linux_binfmt * fmt) +void unregister_binfmt(struct linux_binfmt * fmt) { write_lock(&binfmt_lock); list_del(&fmt->lh); write_unlock(&binfmt_lock); - return 0; } EXPORT_SYMBOL(unregister_binfmt); diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h index 6b834dc..63d5436 100644 --- a/include/linux/binfmts.h +++ b/include/linux/binfmts.h @@ -73,7 +73,7 @@ struct linux_binfmt { }; extern int register_binfmt(struct linux_binfmt *); -extern int unregister_binfmt(struct linux_binfmt *); +extern void unregister_binfmt(struct linux_binfmt *); extern int prepare_binprm(struct linux_binprm *); extern int __must_check remove_arg_zero(struct linux_binprm *); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html