Skip to content

Commit

Permalink
Fix: Fencing: Remove shadow definition and use of variable 'progress'
Browse files Browse the repository at this point in the history
  • Loading branch information
beekhof committed Feb 28, 2014
1 parent 7d54502 commit 5ad4f88
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/fencing/st_client.c
Expand Up @@ -2421,7 +2421,6 @@ stonith_api_time(uint32_t nodeid, const char *uname, bool in_progress)
char *name = NULL;

time_t when = 0;
time_t progress = 0;
stonith_t *st = NULL;
stonith_history_t *history, *hp = NULL;
enum stonith_call_options opts = st_opt_sync_call;
Expand Down Expand Up @@ -2453,9 +2452,6 @@ stonith_api_time(uint32_t nodeid, const char *uname, bool in_progress)
entries++;
if (in_progress) {
progress++;
if (hp->state != st_done && hp->state != st_failed) {
progress = time(NULL);
}

} else if (hp->state == st_done) {
completed++;
Expand All @@ -2472,10 +2468,6 @@ stonith_api_time(uint32_t nodeid, const char *uname, bool in_progress)
}
}

if (progress) {
when = progress;
}

if (st) {
st->cmds->disconnect(st);
stonith_api_delete(st);
Expand Down

0 comments on commit 5ad4f88

Please sign in to comment.