[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] [PATCH 19/20] Remove unused dev_dir_provided



'dev_dir_provided' is unused - remove it.

Signed-off-by: Zdenek Kabelac <zkabelac redhat com>
---
 tools/toollib.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/tools/toollib.c b/tools/toollib.c
index 0a1a8d4..f76aacd 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++;
 		}
-- 
1.7.3.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]