From 3368322e0d6c3ea0b3a16733dc1fd873325b836e Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Thu, 11 Dec 2008 03:34:43 +0000 Subject: [PATCH] Remove redundant init_msg_prefix() and init_cmd_name(). 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c index f4c2a6394..de98940d1 100644 --- a/tools/lvmcmdline.c +++ b/tools/lvmcmdline.c @@ -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);