From fd443e0245ff6a990f933dae261d85c894440f29 Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Fri, 24 Jul 2009 11:13:36 +0000 Subject: [PATCH] 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 --- tools/vgreduce.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/vgreduce.c b/tools/vgreduce.c index be48993d1..8b66a9927 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -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) {