From: Lennart Poettering Date: Mon, 21 Feb 2011 21:10:04 +0000 (+0100) Subject: condition: drop pointless double negation X-Git-Tag: v19~38 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb40c15e481603a02f7527130e69e9a842bd1b78;p=systemd condition: drop pointless double negation --- diff --git a/src/condition.c b/src/condition.c index 3ab4d4e2..630350ed 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;