projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/kernel/res_counter.c
b/kernel/res_counter.c
index 34683efa2cceee37f0a76db7531b8f5fc265a325..6d269cce7aa13c4593540f6aa80be389e3ffc720 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;