summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@gnu.org>2011-12-05 22:13:41 +0100
committerTejun Heo <tj@kernel.org>2011-12-13 07:43:08 -0800
commit52dcf8a1f8ac09b6ea21266ebdc4db6d52eea1fc (patch)
treec09ead58807af8d3d2634672a46fbc0c41787071 /kernel
parent494c167cf76d02000adf740c215adc69a824ecc9 (diff)
downloadop-kernel-dev-52dcf8a1f8ac09b6ea21266ebdc4db6d52eea1fc.zip
op-kernel-dev-52dcf8a1f8ac09b6ea21266ebdc4db6d52eea1fc.tar.gz
resource cgroups: remove bogus cast
The memparse() function already accepts const char * as the parsing string. Signed-off-by: Davidlohr Bueso <dave@gnu.org> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/res_counter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/res_counter.c b/kernel/res_counter.c
index 34683ef..6d269cc 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;
OpenPOWER on IntegriCloud