1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-11 20:58:50 +03:00

pvremove: stack trace

Stack trace error.
Remove unused var.
This commit is contained in:
Zdenek Kabelac 2013-07-06 14:15:42 +02:00
parent ccf3dd60f2
commit edf5cae679

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2002-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2002-2004 Sistina Software, Inc. All rights reserved.
* Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. * Copyright (C) 2004-2013 Red Hat, Inc. All rights reserved.
* *
* This file is part of LVM2. * This file is part of LVM2.
* *
@ -18,7 +18,7 @@
int pvremove(struct cmd_context *cmd, int argc, char **argv) int pvremove(struct cmd_context *cmd, int argc, char **argv)
{ {
int i, r; int i;
int ret = ECMD_PROCESSED; int ret = ECMD_PROCESSED;
unsigned force_count; unsigned force_count;
unsigned prompt; unsigned prompt;
@ -33,9 +33,11 @@ int pvremove(struct cmd_context *cmd, int argc, char **argv)
for (i = 0; i < argc; i++) { for (i = 0; i < argc; i++) {
dm_unescape_colons_and_at_signs(argv[i], NULL, NULL); dm_unescape_colons_and_at_signs(argv[i], NULL, NULL);
if (!pvremove_single(cmd, argv[i], NULL, force_count, prompt)) if (!pvremove_single(cmd, argv[i], NULL, force_count, prompt)) {
stack;
ret = ECMD_FAILED; ret = ECMD_FAILED;
} }
}
return ret; return ret;
} }