diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-02-21 22:10:04 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-02-21 22:10:04 +0100 |
commit | cb40c15e481603a02f7527130e69e9a842bd1b78 (patch) | |
tree | 691f6e7003041cd60dfaafa1cae161bb47e56baf /src/condition.c | |
parent | 039655a40c77f88e4f9ccc00824f2f483f22f2c1 (diff) |
condition: drop pointless double negation
Diffstat (limited to 'src/condition.c')
-rw-r--r-- | src/condition.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/condition.c b/src/condition.c index 3ab4d4e225..630350ed36 100644 --- a/src/condition.c +++ b/src/condition.c @@ -138,10 +138,10 @@ bool condition_test(Condition *c) { } case CONDITION_KERNEL_COMMAND_LINE: - return !!test_kernel_command_line(c->parameter) == !c->negate; + return test_kernel_command_line(c->parameter) == !c->negate; case CONDITION_VIRTUALIZATION: - return !!test_virtualization(c->parameter) == !c->negate; + return test_virtualization(c->parameter) == !c->negate; case CONDITION_NULL: return !c->negate; |