tree-wide: port various places over to STARTSWITH_SET()

This commit is contained in:
Lennart Poettering
2018-11-26 14:08:46 +01:00
parent 52f1552073
commit 49fe5c0996
11 changed files with 31 additions and 51 deletions
+1 -2
View File
@@ -919,8 +919,7 @@ bool valid_device_allow_pattern(const char *path) {
/* Like valid_device_node_path(), but also allows full-subsystem expressions, like DeviceAllow= and DeviceDeny=
* accept it */
if (startswith(path, "block-") ||
startswith(path, "char-"))
if (STARTSWITH_SET(path, "block-", "char-"))
return true;
return valid_device_node_path(path);