]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/condition.c
tree-wide: use IN_SET macro (#6977)
[thirdparty/systemd.git] / src / shared / condition.c
index 103f8d2e3952944b0643f62494effc01043d99db..74d5e854e1051168852e9cdf201e5f982d5cdbeb 100644 (file)
@@ -131,7 +131,7 @@ static int condition_test_kernel_command_line(Condition *c) {
                         const char *f;
 
                         f = startswith(word, c->parameter);
-                        found = f && (*f == '=' || *f == 0);
+                        found = f && IN_SET(*f, 0, '=');
                 }
 
                 if (found)