cgroups/cgfsng: remove logically dead code

Fixes: Coverity 1461761 Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent dc974796
...@@ -2748,9 +2748,6 @@ static int device_cgroup_rule_parse_devpath(struct device_item *device, ...@@ -2748,9 +2748,6 @@ static int device_cgroup_rule_parse_devpath(struct device_item *device,
if (device_cgroup_parse_access(device, mode) < 0) if (device_cgroup_parse_access(device, mode) < 0)
return -1; return -1;
if (n_parts == 1)
return ret_set_errno(-1, EINVAL);
ret = stat(path, &sb); ret = stat(path, &sb);
if (ret < 0) if (ret < 0)
return ret_set_errno(-1, errno); return ret_set_errno(-1, errno);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment