diff options
author | Andrew Morton <akpm@osdl.org> | 2004-04-26 09:01:25 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-26 09:01:25 -0700 |
commit | 81567845df111cb89264475fd83b1ca4b94cff61 (patch) | |
tree | 42d49072018a1093437c69cdad9bd855c0f83bd0 /init | |
parent | 9aa8863fb8b0ac9f3c68c58c1abe91e5dfc8be90 (diff) | |
download | history-81567845df111cb89264475fd83b1ca4b94cff61.tar.gz |
[PATCH] fix CONFIG_SYSFS=n compile warning
From: Matt Mackall <mpm@selenic.com>
Diffstat (limited to 'init')
-rw-r--r-- | init/do_mounts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c index 02385f3c76975b..7f87ff74d11f62 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -194,9 +194,11 @@ dev_t __init name_to_dev_t(char *name) p[-1] = '\0'; res = try_name(s, part); done: +#ifdef CONFIG_SYSFS sys_umount("/sys", 0); out: sys_rmdir("/sys"); +#endif return res; fail: res = 0; |