From: Martin Quinson Date: Sun, 2 Oct 2016 16:22:02 +0000 (+0200) Subject: tiny code simplification X-Git-Tag: v3_14~370 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e5926d5b5a0cc033e611562ce6668ce693a5ef15 tiny code simplification --- diff --git a/src/surf/network_cm02.cpp b/src/surf/network_cm02.cpp index 1721e4cb0a..e1eb56ab22 100644 --- a/src/surf/network_cm02.cpp +++ b/src/surf/network_cm02.cpp @@ -150,8 +150,7 @@ NetworkCm02Model::NetworkCm02Model() xbt_die("Unsupported optimization (%s) for this model. Accepted: Full, Lazy.", optim); } - if (!maxminSystem_) - maxminSystem_ = lmm_system_new(selectiveUpdate_); + maxminSystem_ = lmm_system_new(selectiveUpdate_); routing_model_create(createLink("__loopback__", 498000000, 0.000015, SURF_LINK_FATPIPE, nullptr)); diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index 3fe2701f1e..f5fd1610e8 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -68,8 +68,7 @@ StorageN11Model::StorageN11Model() : StorageModel() { XBT_DEBUG("surf_storage_model_init_internal"); storage_running_action_set_that_does_not_need_being_checked = xbt_swag_new(xbt_swag_offset(*action, stateHookup_)); - if (!maxminSystem_) - maxminSystem_ = lmm_system_new(false /*lazy?*/); + maxminSystem_ = lmm_system_new(false /*lazy?*/); } StorageN11Model::~StorageN11Model(){