]> err.no Git - linux-2.6/commitdiff
Make unregister_binfmt() return void
authorAlexey Dobriyan <adobriyan@sw.ru>
Wed, 17 Oct 2007 06:26:04 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:46 +0000 (08:42 -0700)
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 <adobriyan@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/ia64/ia32/binfmt_elf32.c
fs/exec.c
include/linux/binfmts.h

index 1cfab326fb7e33260c88c3a533bc01a61d267540..f6ae3ec938105c8f94b688823f0e16c9e28f06d3 100644 (file)
@@ -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;
 }
index 65825bdc4475f1706d45d46836a0f537e0b7aa71..550ae9b22f8d048ee80d96a1e8f827fbdfe82282 100644 (file)
--- 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);
index 6b834dcd20b069c52aa97225a3d631d61dfdcbc7..63d54366e0e570884544a9259a113b8833a21516 100644 (file)
@@ -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 *);