From dc9445b12b37f91dd4f6c2d4d20027f0e3860782 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 26 Jun 2012 19:20:52 +0200 Subject: [PATCH] Testing the value is useless here... --- src/instr/instr_paje_containers.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/instr/instr_paje_containers.c b/src/instr/instr_paje_containers.c index 7dbc04475e..64e0608248 100644 --- a/src/instr/instr_paje_containers.c +++ b/src/instr/instr_paje_containers.c @@ -147,12 +147,7 @@ container_t PJ_container_get (const char *name) container_t PJ_container_get_or_null (const char *name) { - if (name == NULL) return NULL; - container_t ret = xbt_dict_get_or_null (allContainers, name); - if (ret == NULL){ - return NULL; - } - return ret; + return name ? xbt_dict_get_or_null(allContainers, name) : NULL; } container_t PJ_container_get_root () -- 2.20.1