]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/journald-kmsg.c
tree-wide: use IN_SET where possible
[thirdparty/systemd.git] / src / journal / journald-kmsg.c
index 1bad7cb2eeb191093b33f78adaf07ae23ae89492..36f16a1ec8da05ac41ed3989ec8619b1f27c7f8a 100644 (file)
@@ -335,7 +335,7 @@ static int server_read_dev_kmsg(Server *s) {
                         return 0;
                 }
 
-                if (errno == EAGAIN || errno == EINTR || errno == EPIPE)
+                if (IN_SET(errno, EAGAIN, EINTR, EPIPE))
                         return 0;
 
                 return log_error_errno(errno, "Failed to read from kernel: %m");