1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-29 06:50:16 +03:00

shared: no need to check result of strndupa()

This commit is contained in:
Lennart Poettering 2019-07-16 12:09:02 +02:00
parent 9228fef0d6
commit 525e9b7991

View File

@ -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)