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
Simplify expression.
[simgrid.git]
/
src
/
plugins
/
operation.cpp
diff --git
a/src/plugins/operation.cpp
b/src/plugins/operation.cpp
index
a250332
..
f9f8f1c
100644
(file)
--- a/
src/plugins/operation.cpp
+++ b/
src/plugins/operation.cpp
@@
-61,10
+61,7
@@
void Operation::remove_predecessor(Operation* predecessor)
*/
bool Operation::ready_to_run() const
{
- if (working_ or queued_execs_ <= 0)
- return false;
- else
- return true;
+ return not working_ && queued_execs_ > 0;
}
/**