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 <adobriyan@sw.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
e4dc1b14d8
commit
f6b450d489
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user