]> sourceware.org Git - lvm2.git/commitdiff
Remove handles_missing_pvs assignment after call to create_toolcontext().
authorDave Wysochanski <dwysocha@redhat.com>
Thu, 11 Dec 2008 03:31:10 +0000 (03:31 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Thu, 11 Dec 2008 03:31:10 +0000 (03:31 +0000)
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.

tools/lvmcmdline.c

index 9fcf6fee86c4d837bea57081d56181ad62d2c1a9..75f9c8ce4490707ded77e45446a8fafff029981e 100644 (file)
@@ -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;
 }
This page took 0.038214 seconds and 5 git commands to generate.