[systemd-commits] src/condition.c
Lennart Poettering
lennart at kemper.freedesktop.org
Mon Feb 21 13:10:16 PST 2011
src/condition.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit cb40c15e481603a02f7527130e69e9a842bd1b78
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 21 22:10:04 2011 +0100
condition: drop pointless double negation
diff --git a/src/condition.c b/src/condition.c
index 3ab4d4e..630350e 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;
More information about the systemd-commits
mailing list