patch-2.3.99-pre1 linux/fs/msdos/namei.c

Next file: linux/fs/ncpfs/inode.c
Previous file: linux/fs/msdos/msdosfs_syms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/fs/msdos/namei.c linux/fs/msdos/namei.c
@@ -599,28 +599,7 @@
 
 	MSDOS_SB(sb)->options.isvfat = 0;
 	res = fat_read_super(sb, data, silent, &msdos_dir_inode_operations);
-	if (res == NULL)
-		goto out_fail;
-	sb->s_root->d_op = &msdos_dentry_operations;
+	if (res)
+		sb->s_root->d_op = &msdos_dentry_operations;
 	return res;
-
-out_fail:
-	return NULL;
 }
-
-
-
-#ifdef MODULE
-int init_module(void)
-{
-	return init_msdos_fs();
-}
-
-
-void cleanup_module(void)
-{
-	unregister_filesystem(&msdos_fs_type);
-}
-
-#endif
-

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)