From: Lennart Poettering Date: Tue, 16 Jul 2019 10:09:02 +0000 (+0200) Subject: shared: no need to check result of strndupa() X-Git-Tag: v243-rc1~115^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13073%2Fhead;p=thirdparty%2Fsystemd.git shared: no need to check result of strndupa() --- 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)