From: Christian Brauner Date: Wed, 9 Dec 2020 10:48:47 +0000 (+0100) Subject: cgroups/cgfsng: remove logically dead code X-Git-Tag: lxc-5.0.0~330^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=504ce601ba267ccb3a1353dd6141672b5f87a851;p=thirdparty%2Flxc.git cgroups/cgfsng: remove logically dead code Fixes: Coverity 1461761 Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 862714d87..cade4d3c7 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -2749,9 +2749,6 @@ static int device_cgroup_rule_parse_devpath(struct device_item *device, if (device_cgroup_parse_access(device, mode) < 0) return -1; - if (n_parts == 1) - return ret_set_errno(-1, EINVAL); - ret = stat(path, &sb); if (ret < 0) return ret_set_errno(-1, errno);