]> sourceware.org Git - lvm2.git/commitdiff
Remove redundant init_msg_prefix() and init_cmd_name().
authorDave Wysochanski <dwysocha@redhat.com>
Thu, 11 Dec 2008 03:34:43 +0000 (03:34 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Thu, 11 Dec 2008 03:34:43 +0000 (03:34 +0000)
This is very obvious - _init_logging() makes the identical init_msg_prefix()
and init_cmd_name() calls with cmd->default_settings so these calls are
clearly redundant after calling create_toolcontext().

tools/lvmcmdline.c

index f4c2a639444c8b847db379c8c63e5b1d5fe285b3..de98940d186de63b3cb95b46683f134133c7881b 100644 (file)
@@ -1094,9 +1094,6 @@ struct cmd_context *init_lvm(unsigned is_static)
        init_full_scan_done(0);
        init_mirror_in_sync(0);
 
-       init_msg_prefix(cmd->default_settings.msg_prefix);
-       init_cmd_name(cmd->default_settings.cmd_name);
-
        cmd->fmt = arg_ptr_value(cmd, metadatatype_ARG,
                                 cmd->current_settings.fmt);
 
This page took 0.041562 seconds and 5 git commands to generate.