projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
494c167
)
resource cgroups: remove bogus cast
author
Davidlohr Bueso
<dave@gnu.org>
Mon, 5 Dec 2011 21:13:41 +0000
(22:13 +0100)
committer
Tejun 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
patch
|
blob
|
history
diff --git
a/kernel/res_counter.c
b/kernel/res_counter.c
index
34683ef
..
6d269cc
100644
(file)
--- 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;