lkml.org 
[lkml]   [2009]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 24/56] mips: Remove void casts
[Added maintainer CC]
Jack Stone wrote:
> Remove uneeded void casts
>
> Signed-Off-By: Jack Stone <jwjstone@fastmail.fm>
> ---
> arch/mips/boot/elf2ecoff.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/mips/boot/elf2ecoff.c b/arch/mips/boot/elf2ecoff.c
> index c5a7f30..0a4cbf0 100644
> --- a/arch/mips/boot/elf2ecoff.c
> +++ b/arch/mips/boot/elf2ecoff.c
> @@ -136,7 +136,7 @@ static char *saveRead(int file, off_t offset, off_t len, char *name)
> fprintf(stderr, "%s: fseek: %s\n", name, strerror(errno));
> exit(1);
> }
> - if (!(tmp = (char *) malloc(len))) {
> + if (!(tmp = malloc(len))) {
> fprintf(stderr, "%s: Can't allocate %ld bytes.\n", name,
> len);
> exit(1);
>



\
 
 \ /
  Last update: 2009-04-09 12:09    [W:0.389 / U:0.116 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site