resource cgroups: remove bogus cast

The memparse() function already accepts const char * as the parsing string.

Signed-off-by: Davidlohr Bueso <[email protected]>
Acked-by: Pavel Emelyanov <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
This commit is contained in:
Davidlohr Bueso 2011-12-05 22:13:41 +01:00 • committed by Tejun Heo
commit 52dcf8a1f8

View 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;