From e5926d5b5a0cc033e611562ce6668ce693a5ef15 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 2 Oct 2016 18:22:02 +0200 Subject: [PATCH 1/1] tiny code simplification --- src/surf/network_cm02.cpp | 3 +-- src/surf/storage_n11.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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(){ -- 2.20.1