Commit-ID: 8514044c9f489a8405d0319df56118c26f2c1421 Gitweb: http://git.kernel.org/tip/8514044c9f489a8405d0319df56118c26f2c1421 Author: Lai Jiangshan <laijs@xxxxxxxxxxxxxx> AuthorDate: Fri, 16 Dec 2011 17:12:01 +0800 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Sat, 17 Dec 2011 09:36:03 +0200 kvm-tools: remove make_root_dir() The root dir was already created by kvm__set_dir() which is in main(). Acked-by: Sasha Levin <levinsasha928@xxxxxxxxx> Signed-off-by: Lai Jiangshan <laijs@xxxxxxxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/builtin-setup.c | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/tools/kvm/builtin-setup.c b/tools/kvm/builtin-setup.c index ecdf76b..1bdb8ba 100644 --- a/tools/kvm/builtin-setup.c +++ b/tools/kvm/builtin-setup.c @@ -153,15 +153,6 @@ static int make_guestfs_symlink(const char *guestfs_name, const char *path) return symlink(target, name); } -static void make_root_dir(void) -{ - char name[PATH_MAX]; - - snprintf(name, PATH_MAX, "%s", kvm__get_dir()); - - mkdir(name, 0777); -} - static int make_dir(const char *dir) { char name[PATH_MAX]; @@ -194,8 +185,6 @@ static int do_setup(const char *guestfs_name) unsigned int i; int ret; - make_root_dir(); - ret = make_dir(guestfs_name); if (ret < 0) return ret; -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html