Commit 371a7092 authored by Pavel Emelyanov's avatar Pavel Emelyanov

cg: Remove write-only variable

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a40ab4e3
......@@ -411,13 +411,10 @@ static int add_cgroup(const char *fpath, const struct stat *sb, int typeflag)
{
struct cgroup_dir *ncd = NULL, *match;
int ret = 0;
char pbuf[PATH_MAX];
if (typeflag == FTW_D) {
int mtype;
strncpy(pbuf, fpath, PATH_MAX);
pr_info("adding cgroup %s\n", fpath);
ncd = xmalloc(sizeof(*ncd));
......
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