Skip to content

Commit

Permalink
resource cgroups: remove bogus cast
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Davidlohr Bueso authored and Tejun Heo committed Dec 13, 2011
1 parent 494c167 commit 52dcf8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/res_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 52dcf8a

Please sign in to comment.