chiark / gitweb /
main: minor simplification
[elogind.git] / src / core / main.c
index 05f0803b8bb81550a22d2050b426c89ec9d36e3b..25f55fced23559addfaf0a54f932794c8175e033 100644 (file)
@@ -1573,10 +1573,9 @@ int main(int argc, char *argv[]) {
 
         /* Make sure we leave a core dump without panicing the
          * kernel. */
-        if (getpid() == 1)
+        if (getpid() == 1) {
                 install_crash_handler();
 
-        if (getpid() == 1) {
                 r = mount_cgroup_controllers(arg_join_controllers);
                 if (r < 0)
                         goto finish;