From bbc4678dd53e3742b5ce7f96aba03038215bbbc4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 22 Feb 2016 14:29:14 +0100 Subject: Remove pointless casts from void*. Extraneous explicit type casts can mask errors, especially if a function prototype or return value changes in the future. --- source/pdf/pdf-function.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/pdf/pdf-function.c') diff --git a/source/pdf/pdf-function.c b/source/pdf/pdf-function.c index f8e72e87..2804f952 100644 --- a/source/pdf/pdf-function.c +++ b/source/pdf/pdf-function.c @@ -1613,9 +1613,7 @@ pdf_load_function(fz_context *ctx, pdf_document *doc, pdf_obj *dict, int in, int fz_throw(ctx, FZ_ERROR_GENERIC, "Recursion in function definition"); if ((func = pdf_find_item(ctx, pdf_drop_function_imp, dict)) != NULL) - { return (fz_function *)func; - } func = fz_malloc_struct(ctx, pdf_function); FZ_INIT_STORABLE(&func->base, 1, pdf_drop_function_imp); -- cgit v1.2.3