From 90deae7d8b90e5c834a0e03e912c26efb3c24633 Mon Sep 17 00:00:00 2001 From: Maninder Singh Date: Mon, 15 Jun 2015 13:25:34 +0000 Subject: [PATCH] lib/random_range.c: remove unnecessary malloc type cast Signed-off-by: Maninder Singh Signed-off-by: Akhilesh Kumar --- lib/random_range.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/random_range.c b/lib/random_range.c index 1d88dd2a2..510a4a1ff 100644 --- a/lib/random_range.c +++ b/lib/random_range.c @@ -121,7 +121,7 @@ int parse_ranges(char *str, int defmin, int defmax, int defmult, } tmpstr = strdup(str); - ranges = (struct range *)malloc((ncommas + 1) * sizeof(struct range)); + ranges = malloc((ncommas + 1) * sizeof(struct range)); rp = ranges; tok = strtok(tmpstr, ",");