From: Alexey Dobriyan Date: Fri, 29 Sep 2006 09:01:07 +0000 (-0700) Subject: [PATCH] Ban register_filesystem(NULL); X-Git-Tag: v2.6.19-rc1~703 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6ea36ddbd1abfe867f1e874a8312bfd811e5fd2c;p=linux-2.6-omap-h63xx.git [PATCH] Ban register_filesystem(NULL); Everyone passes valid pointer there. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/filesystems.c b/fs/filesystems.c index 9f1072836c8..e3fa77c6ed5 100644 --- a/fs/filesystems.c +++ b/fs/filesystems.c @@ -69,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);