Commit 52dcf8a1 authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Tejun Heo

resource cgroups: remove bogus cast

The memparse() function already accepts const char * as the parsing string.
Signed-off-by: default avatarDavidlohr Bueso <dave@gnu.org>
Acked-by: default avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 494c167c
......@@ -159,8 +159,7 @@ int res_counter_memparse_write_strategy(const char *buf,
return 0;
}
/* FIXME - make memparse() take const char* args */
*res = memparse((char *)buf, &end);
*res = memparse(buf, &end);
if (*end != '\0')
return -EINVAL;
......
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