Clean up warnings: remove changed_flags in monitor_helper
authorMartin Schwenke <martin@meltin.net>
Wed, 9 Nov 2011 03:45:01 +0000 (14:45 +1100)
committerMichael Adam <obnox@samba.org>
Mon, 26 Aug 2013 11:35:49 +0000 (13:35 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit 3e4fa518f02db75e4e4a7f326a71df226913f8a8)

server/ctdb_recoverd.c

index 13382d2af608923db5809542f1376f4520019ab7..273cce4cc2cfdf2e1a20264ad72db1cf662b8738 100644 (file)
@@ -2148,7 +2148,6 @@ static void monitor_handler(struct ctdb_context *ctdb, uint64_t srvid,
        struct ctdb_node_flag_change *c = (struct ctdb_node_flag_change *)data.dptr;
        struct ctdb_node_map *nodemap=NULL;
        TALLOC_CTX *tmp_ctx;
-       uint32_t changed_flags;
        int i;
        struct ctdb_recoverd *rec = talloc_get_type(private_data, struct ctdb_recoverd);
        int disabled_flag_changed;
@@ -2179,8 +2178,6 @@ static void monitor_handler(struct ctdb_context *ctdb, uint64_t srvid,
                return;
        }
 
-       changed_flags = c->old_flags ^ c->new_flags;
-
        if (nodemap->nodes[i].flags != c->new_flags) {
                DEBUG(DEBUG_NOTICE,("Node %u has changed flags - now 0x%x  was 0x%x\n", c->pnn, c->new_flags, c->old_flags));
        }