resource cgroups: remove bogus cast
authorDavidlohr Bueso <dave@gnu.org>
Mon, 5 Dec 2011 21:13:41 +0000 (22:13 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 13 Dec 2011 15:43:08 +0000 (07:43 -0800)
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>
kernel/res_counter.c

index 34683ef..6d269cc 100644 (file)
@@ -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;