From: Davidlohr Bueso Date: Mon, 5 Dec 2011 21:13:41 +0000 (+0100) Subject: resource cgroups: remove bogus cast X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=52dcf8a1f8ac09b6ea21266ebdc4db6d52eea1fc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 34683efa2cce..6d269cce7aa1 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;