chiark / gitweb /
tree-wide: use `!IN_SET(..)` for `a != b && a != c && …`
[elogind.git] / src / login / logind-user.c
index cd460d36551f8459f6739ca212c3cebda89e718f..485be84f6a948e823e7f17dce2f9e2fad61654cc 100644 (file)
@@ -363,7 +363,7 @@ static int user_mkdir_runtime_path(User *u) {
 
                 r = mount("tmpfs", u->runtime_path, "tmpfs", MS_NODEV|MS_NOSUID, t);
                 if (r < 0) {
-                        if (errno != EPERM && errno != EACCES) {
+                        if (!IN_SET(errno, EPERM, EACCES)) {
                                 r = log_error_errno(errno, "Failed to mount per-user tmpfs directory %s: %m", u->runtime_path);
                                 goto fail;
                         }