From 9f5dc3192ed5325b39bdb0580700652b06440606 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 25 Feb 2019 20:30:31 +0000 Subject: *: remove casts of XMALLOC / XCALLOC No cast necessary for void * Signed-off-by: Quentin Young --- lib/filter.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/filter.c') diff --git a/lib/filter.c b/lib/filter.c index 7df384f3b5..276df4b4d7 100644 --- a/lib/filter.c +++ b/lib/filter.c @@ -128,8 +128,7 @@ static struct access_master *access_master_get(afi_t afi) /* Allocate new filter structure. */ static struct filter *filter_new(void) { - return (struct filter *)XCALLOC(MTYPE_ACCESS_FILTER, - sizeof(struct filter)); + return XCALLOC(MTYPE_ACCESS_FILTER, sizeof(struct filter)); } static void filter_free(struct filter *filter) @@ -202,8 +201,7 @@ static int filter_match_zebra(struct filter *mfilter, const struct prefix *p) /* Allocate new access list structure. */ static struct access_list *access_list_new(void) { - return (struct access_list *)XCALLOC(MTYPE_ACCESS_LIST, - sizeof(struct access_list)); + return XCALLOC(MTYPE_ACCESS_LIST, sizeof(struct access_list)); } /* Free allocated access_list. */ -- cgit v1.2.3