From: Arnaud Giersch Date: Tue, 26 Jun 2012 17:20:52 +0000 (+0200) Subject: Testing the value is useless here... X-Git-Tag: v3_8~446 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/dc9445b12b37f91dd4f6c2d4d20027f0e3860782 Testing the value is useless here... --- 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 ()