From: Davidlohr Bueso Date: Mon, 5 Dec 2011 21:13:41 +0000 (+0100) Subject: resource cgroups: remove bogus cast X-Git-Tag: v3.3-rc1~148^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=52dcf8a1f8ac09b6ea21266ebdc4db6d52eea1fc;p=thirdparty%2Fkernel%2Flinux.git resource cgroups: remove bogus cast The memparse() function already accepts const char * as the parsing string. Signed-off-by: Davidlohr Bueso Acked-by: Pavel Emelyanov Signed-off-by: Tejun Heo --- diff --git a/kernel/res_counter.c b/kernel/res_counter.c index 34683efa2ccee..6d269cce7aa13 100644 --- a/kernel/res_counter.c +++ b/kernel/res_counter.c @@ -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;