A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kill "if" before free, and useless cast of free argument.
[simgrid.git]
/
src
/
surf
/
network_ns3.c
diff --git
a/src/surf/network_ns3.c
b/src/surf/network_ns3.c
index
31b26d5
..
c1ede45
100644
(file)
--- a/
src/surf/network_ns3.c
+++ b/
src/surf/network_ns3.c
@@
-79,8
+79,7
@@
void parse_ns3_add_host(void)
}
static void ns3_free_dynar(void * elmts){
}
static void ns3_free_dynar(void * elmts){
- if(elmts)
- free(elmts);
+ free(elmts);
return;
}
return;
}
@@
-548,8
+547,7
@@
static int action_unref(surf_action_t action)
#ifdef HAVE_TRACING
xbt_free(((surf_action_network_ns3_t)action)->src_name);
xbt_free(((surf_action_network_ns3_t)action)->dst_name);
#ifdef HAVE_TRACING
xbt_free(((surf_action_network_ns3_t)action)->src_name);
xbt_free(((surf_action_network_ns3_t)action)->dst_name);
- if (action->category)
- xbt_free(action->category);
+ xbt_free(action->category);
#endif
XBT_DEBUG ("Removing action %p", action);
surf_action_free(&action);
#endif
XBT_DEBUG ("Removing action %p", action);
surf_action_free(&action);