From bb86f0a22abc4edc30a4fc583d41d9de1a842f43 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 20 Dec 2010 14:05:31 +0000 Subject: [PATCH] Remove unused variable dev_dir_provided --- tools/toollib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/toollib.c b/tools/toollib.c index 0a1a8d489..f76aacda3 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -842,7 +842,6 @@ const char *extract_vgname(struct cmd_context *cmd, const char *lv_name) const char *vg_name = lv_name; char *st; char *dev_dir = cmd->dev_dir; - int dev_dir_provided = 0; /* Path supplied? */ if (vg_name && strchr(vg_name, '/')) { @@ -854,7 +853,6 @@ const char *extract_vgname(struct cmd_context *cmd, const char *lv_name) } if (!strncmp(vg_name, dev_dir, strlen(dev_dir))) { vg_name += strlen(dev_dir); - dev_dir_provided = 1; while (*vg_name == '/') vg_name++; } -- 2.43.5