Commit a49cae03 authored by Patrick Mochel's avatar Patrick Mochel

sysfs: don't complain when sysfs can't register.

During startup, sysfs won't succeed in registering with itself, because
it's not yet inititialized. This was causing an unnecessary error on boot.
parent 22714a10
......@@ -125,9 +125,7 @@ int register_filesystem(struct file_system_type * fs)
if (!res) {
/* we implicitly possess reference to @fs during registration,
* so it cannot be unregister from under us. */
if (register_fs_subsys(fs))
printk(KERN_WARNING "Failed to register '%s' in sysfs\n",
fs->name);
register_fs_subsys(fs);
}
return res;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment