Commit cb40c15e authored by Lennart Poettering's avatar Lennart Poettering
Browse files

condition: drop pointless double negation

parent 039655a4
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment