[lvm-devel] [PATCH 04/11] Remove handles_missing_pvs assignment after call to create_toolcontext().

Dave Wysochanski dwysocha at redhat.com
Wed Dec 10 18:10:54 UTC 2008


This variable is set at the top of create_toolcontext() to 0.
Nothing later in create_toolcontext() changes the value.
In init_lvm(), nothing between create_toolcontext() call and this assignment
changes the value.  Thus, the assignment is redundant.

Signed-off-by: Dave Wysochanski <dwysocha at redhat.com>
---
 tools/lvmcmdline.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index 9fcf6fe..75f9c8c 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -1105,7 +1105,6 @@ struct cmd_context *init_lvm(unsigned is_static)
 
 	cmd->fmt = arg_ptr_value(cmd, metadatatype_ARG,
 				 cmd->current_settings.fmt);
-	cmd->handles_missing_pvs = 0;
 
 	return cmd;
 }
-- 
1.5.5.1




More information about the lvm-devel mailing list