From e78d473b4347fb55248b3aa770af98a97cb91dad Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Mon, 26 Jul 2010 19:03:29 +0000 Subject: [PATCH] Remove unneeded "active" variable in vgchange_monitoring(). --- tools/vgchange.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/vgchange.c b/tools/vgchange.c index 6758c0517..960d8ddf7 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -160,9 +160,9 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd, static int _vgchange_monitoring(struct cmd_context *cmd, struct volume_group *vg) { - int active, monitored; + int monitored; - if ((active = lvs_in_vg_activated(vg)) && + if (lvs_in_vg_activated(vg) && dmeventd_monitor_mode() != DMEVENTD_MONITOR_IGNORE) { monitored = _monitor_lvs_in_vg(cmd, vg, dmeventd_monitor_mode()); log_print("%d logical volume(s) in volume group " -- 2.43.5