__register_binfmt() made void
Just don't pass NULL to it - nobody does, anyway. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@ -726,11 +726,8 @@ static struct file_system_type bm_fs_type = {
|
||||
static int __init init_misc_binfmt(void)
|
||||
{
|
||||
int err = register_filesystem(&bm_fs_type);
|
||||
if (!err) {
|
||||
err = insert_binfmt(&misc_format);
|
||||
if (err)
|
||||
unregister_filesystem(&bm_fs_type);
|
||||
}
|
||||
if (!err)
|
||||
insert_binfmt(&misc_format);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user