1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

Remove redundant validate_name in vgreduce.

This check is now done in vg_read_for_update, thanks to mornfall.
Should be no functional change.

Author: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
Dave Wysochanski 2009-07-24 11:13:36 +00:00
parent e9344c9174
commit fd443e0245

View File

@ -502,12 +502,6 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv)
argv++;
argc--;
if (!validate_name(vg_name)) {
log_error("Volume group name \"%s\" is invalid",
vg_name);
return ECMD_FAILED;
}
log_verbose("Finding volume group \"%s\"", vg_name);
if (repairing) {