From 504ce601ba267ccb3a1353dd6141672b5f87a851 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 9 Dec 2020 11:48:47 +0100 Subject: [PATCH] cgroups/cgfsng: remove logically dead code Fixes: Coverity 1461761 Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 3 --- 1 file changed, 3 deletions(-) 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); -- 2.47.2