From: Gabriel Corona Date: Tue, 5 May 2015 12:46:40 +0000 (+0200) Subject: [mc] Cleanup horrible for loop X-Git-Tag: v3_12~732^2~13 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3c9b9a5576f5a85bbe0ca820a58b8ab6593e6960 [mc] Cleanup horrible for loop --- diff --git a/src/mc/mc_global.cpp b/src/mc/mc_global.cpp index 076f146fb9..337b1badd0 100644 --- a/src/mc/mc_global.cpp +++ b/src/mc/mc_global.cpp @@ -456,8 +456,8 @@ void MC_show_stack_liveness(xbt_fifo_t stack) char *req_str = NULL; for (item = xbt_fifo_get_last_item(stack); - (item ? (pair = (mc_pair_t) (xbt_fifo_get_item_content(item))) : (NULL)); - item = xbt_fifo_get_prev_item(item)) { + item; item = xbt_fifo_get_prev_item(item)) { + pair = (mc_pair_t) xbt_fifo_get_item_content(item); req = MC_state_get_executed_request(pair->graph_state, &value); if (req && req->call != SIMCALL_NONE) { req_str = MC_request_to_string(req, value, MC_REQUEST_EXECUTED);