From 525e9b7991878ab448462ff20ab5d54960ecad01 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 16 Jul 2019 12:09:02 +0200 Subject: [PATCH] shared: no need to check result of strndupa() --- src/shared/bus-unit-procs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/shared/bus-unit-procs.c b/src/shared/bus-unit-procs.c index b9be8fe1bef..b21fe393265 100644 --- a/src/shared/bus-unit-procs.c +++ b/src/shared/bus-unit-procs.c @@ -47,8 +47,6 @@ static int add_cgroup(Hashmap *cgroups, const char *path, bool is_const, struct return -EINVAL; pp = strndupa(path, e - path); - if (!pp) - return -ENOMEM; r = add_cgroup(cgroups, pp, false, &parent); if (r < 0) -- 2.47.3