Commit 81567845 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix CONFIG_SYSFS=n compile warning

From: Matt Mackall <mpm@selenic.com>
parent 9aa8863f
...@@ -194,9 +194,11 @@ dev_t __init name_to_dev_t(char *name) ...@@ -194,9 +194,11 @@ dev_t __init name_to_dev_t(char *name)
p[-1] = '\0'; p[-1] = '\0';
res = try_name(s, part); res = try_name(s, part);
done: done:
#ifdef CONFIG_SYSFS
sys_umount("/sys", 0); sys_umount("/sys", 0);
out: out:
sys_rmdir("/sys"); sys_rmdir("/sys");
#endif
return res; return res;
fail: fail:
res = 0; res = 0;
......
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