From 3742095b27f8df4b195d530b52d15bc5fea70bf1 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Fri, 29 Sep 2017 00:37:23 +0200 Subject: tree-wide: use IN_SET where possible In addition to the changes from #6933 this handles cases that could be matched with the included cocci file. --- src/journal/journald-kmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/journal/journald-kmsg.c') diff --git a/src/journal/journald-kmsg.c b/src/journal/journald-kmsg.c index 1bad7cb2ee..36f16a1ec8 100644 --- a/src/journal/journald-kmsg.c +++ b/src/journal/journald-kmsg.c @@ -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"); -- cgit v1.2.1