]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/filesystems.c
[PATCH] knfsd: lockd: introduce nsm_handle
[linux-2.6-omap-h63xx.git] / fs / filesystems.c
index 44082bfdfec960037be53f9cff8a412711bf6e1b..e3fa77c6ed56dce64e3fe68892022edaa85d0e56 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/kmod.h>
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/sched.h>       /* for 'current' */
 #include <asm/uaccess.h>
 
 /*
@@ -68,8 +69,6 @@ int register_filesystem(struct file_system_type * fs)
        int res = 0;
        struct file_system_type ** p;
 
-       if (!fs)
-               return -EINVAL;
        if (fs->next)
                return -EBUSY;
        INIT_LIST_HEAD(&fs->fs_supers);