From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Stone Date: Wed, 08 Apr 2009 13:54:16 +0000 Subject: Re: [PATCH 20/56] inflate: Remove void casts Message-Id: <49DCAC88.7010500@fastmail.fm> List-Id: References: <1239189748-11703-1-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-13-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-14-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-15-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-16-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-17-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-18-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-19-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-20-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-21-git-send-email-jwjstone@fastmail.fm> <36ca99e90904080439u7098d2feka5dd39f8ab6a470c@mail.gmail.com> In-Reply-To: <36ca99e90904080439u7098d2feka5dd39f8ab6a470c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Bert Wesarg Cc: linux-kernel@vger.kernel.org, jeff@garzik.org, kernel-janitors@vger.kernel.org Heres the fixed patch Thanks, Jack -- inflate: Remove void casts From: Jack Stone Remove uneeded void casts Signed-Off-By: Jack Stone --- lib/inflate.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/inflate.c b/lib/inflate.c index 1a8e8a9..1eb0cd8 100644 --- a/lib/inflate.c +++ b/lib/inflate.c @@ -249,7 +249,7 @@ static void *malloc(int size) malloc_ptr = (malloc_ptr + 3) & ~3; /* Align */ - p = (void *)malloc_ptr; + p = malloc_ptr; malloc_ptr += size; if (free_mem_end_ptr && malloc_ptr >= free_mem_end_ptr) @@ -481,8 +481,7 @@ DEBG1("3 "); z = 1 << j; /* table entries for j-bit table */ /* allocate and link in new table */ - if ((q = (struct huft *)malloc((z + 1)*sizeof(struct huft))) = - (struct huft *)NULL) + if ((q = malloc((z + 1)*sizeof(struct huft))) = NULL) { if (h) huft_free(u[0]);