summaryrefslogtreecommitdiff
path: root/src/core/cgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r--src/core/cgroup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 774b832a63..71f307fb6c 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -398,8 +398,7 @@ static int whitelist_major(const char *path, const char *name, char type, const
return 0;
fail:
- log_warning_errno(errno, "Failed to read /proc/devices: %m");
- return -errno;
+ return log_warning_errno(errno, "Failed to read /proc/devices: %m");
}
static bool cgroup_context_has_cpu_weight(CGroupContext *c) {