[lvm-devel] [PATCH 15/20] Remove dead assignment in _init_logging
Zdenek Kabelac
zkabelac at redhat.com
Thu Dec 16 10:36:23 UTC 2010
old_mask is not used later - so remove it.
Signed-off-by: Zdenek Kabelac <zkabelac at redhat.com>
---
lib/commands/toolcontext.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index c5fc057..9791b45 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -200,7 +200,6 @@ static void _init_logging(struct cmd_context *cmd)
static int _process_config(struct cmd_context *cmd)
{
- mode_t old_umask;
const char *read_ahead;
struct stat st;
const struct config_node *cn;
@@ -211,7 +210,7 @@ static int _process_config(struct cmd_context *cmd)
"global/umask",
DEFAULT_UMASK);
- if ((old_umask = umask((mode_t) cmd->default_settings.umask)) !=
+ if (umask((mode_t) cmd->default_settings.umask) !=
(mode_t) cmd->default_settings.umask)
log_verbose("Set umask to %04o", cmd->default_settings.umask);
--
1.7.3.3
More information about the lvm-devel
mailing list