ff6046
From 285e4d2ce6a8836ce7bf2e889d43b7272f7ccc1b Mon Sep 17 00:00:00 2001
ff6046
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
ff6046
Date: Wed, 5 Dec 2018 17:53:50 +0100
ff6046
Subject: [PATCH] journald: remove unnecessary {}
ff6046
ff6046
(cherry-picked from commit bc2762a309132a34db1797d8b5792d5747a94484)
ff6046
ff6046
Related: #1664976
ff6046
---
ff6046
 src/journal/journald-server.c | 4 +---
ff6046
 1 file changed, 1 insertion(+), 3 deletions(-)
ff6046
ff6046
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
ff6046
index 4f1550ec5b..ce2446a2f1 100644
ff6046
--- a/src/journal/journald-server.c
ff6046
+++ b/src/journal/journald-server.c
ff6046
@@ -1124,8 +1124,7 @@ int server_process_datagram(sd_event_source *es, int fd, uint32_t revents, void
ff6046
                 return log_error_errno(errno, "recvmsg() failed: %m");
ff6046
         }
ff6046
 
ff6046
-        CMSG_FOREACH(cmsg, &msghdr) {
ff6046
-
ff6046
+        CMSG_FOREACH(cmsg, &msghdr)
ff6046
                 if (cmsg->cmsg_level == SOL_SOCKET &&
ff6046
                     cmsg->cmsg_type == SCM_CREDENTIALS &&
ff6046
                     cmsg->cmsg_len == CMSG_LEN(sizeof(struct ucred)))
ff6046
@@ -1143,7 +1142,6 @@ int server_process_datagram(sd_event_source *es, int fd, uint32_t revents, void
ff6046
                         fds = (int*) CMSG_DATA(cmsg);
ff6046
                         n_fds = (cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(int);
ff6046
                 }
ff6046
-        }
ff6046
 
ff6046
         /* And a trailing NUL, just in case */
ff6046
         s->buffer[n] = 0;