chiark / gitweb /
treewide: another round of simplifications
[elogind.git] / src / core / mount-setup.c
index d319a151875228e58b401f8c5f5a6dd0b979526f..342f5520c9f3f1011c6c0602e986be5679756798 100644 (file)
@@ -340,10 +340,8 @@ int mount_cgroup_controllers(char ***join_controllers) {
                                         return log_oom();
 
                                 r = symlink(options, t);
-                                if (r < 0 && errno != EEXIST) {
-                                        log_error_errno(errno, "Failed to create symlink %s: %m", t);
-                                        return -errno;
-                                }
+                                if (r < 0 && errno != EEXIST)
+                                        return log_error_errno(errno, "Failed to create symlink %s: %m", t);
                         }
                 }
         }