aboutsummaryrefslogtreecommitdiffstats
path: root/fs/binfmt_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r--fs/binfmt_misc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index a9198dfd5f85..1ffb60355cae 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -726,11 +726,8 @@ static struct file_system_type bm_fs_type = {
726static int __init init_misc_binfmt(void) 726static int __init init_misc_binfmt(void)
727{ 727{
728 int err = register_filesystem(&bm_fs_type); 728 int err = register_filesystem(&bm_fs_type);
729 if (!err) { 729 if (!err)
730 err = insert_binfmt(&misc_format); 730 insert_binfmt(&misc_format);
731 if (err)
732 unregister_filesystem(&bm_fs_type);
733 }
734 return err; 731 return err;
735} 732}
736 733