]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/udev/udev-builtin-uaccess.c
tree-wide: use IN_SET macro (#6977)
[thirdparty/systemd.git] / src / udev / udev-builtin-uaccess.c
index 3ebe36f0433c7b1737b10d35fc6643890183f0ce..d92a10e1c5b272a2766ba90e0fe304a9cc09067f 100644 (file)
@@ -47,7 +47,7 @@ static int builtin_uaccess(struct udev_device *dev, int argc, char *argv[], bool
                 seat = "seat0";
 
         r = sd_seat_get_active(seat, NULL, &uid);
-        if (r == -ENXIO || r == -ENODATA) {
+        if (IN_SET(r, -ENXIO, -ENODATA)) {
                 /* No active session on this seat */
                 r = 0;
                 goto finish;