mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
Remove unused variable dev_dir_provided
This commit is contained in:
parent
f2554b9d2a
commit
bb86f0a22a
@ -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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user