Ahmed S. Darwish wrote: > Hi all, > This is a patch to remove the unneeded k[mzc]alloc casts in the whole > 2.6.20-rc3 tree. I tried to put this patch in a patchset but I couldn't > cause the modified files have nothing in common (except the unneeded casts > ofcourse). > > This patch includes http://lkml.org/lkml/fancy/2007/1/5/12 and > http://lkml.org/lkml/2007/1/5/6. > > Signed-off-by: Ahmed Darwish > > diff --git a/arch/cris/arch-v32/mm/intmem.c > b/arch/cris/arch-v32/mm/intmem.c index 41ee7f7..acb4e21 100644 > --- a/arch/cris/arch-v32/mm/intmem.c > +++ b/arch/cris/arch-v32/mm/intmem.c > @@ -27,8 +27,8 @@ static void crisv32_intmem_init(void) > { > static int initiated = 0; > if (!initiated) { > - struct intmem_allocation* alloc = > - (struct intmem_allocation*)kmalloc(sizeof *alloc, GFP_KERNEL); > + struct intmem_allocation* alloc = kmalloc(sizeof *alloc, > + GFP_KERNEL); sizeof(*alloc) (see Documentation/CodingStyle) There are some more of this kind. Eike
Attachment:
pgpskA1BGhFSt.pgp
Description: PGP signature
- Follow-Ups:
- Re: [PATCH UPDATED 2.6.20-rc3] Remove all the unneeded k[mzc]alloc casts
- From: "Ahmed S. Darwish" <darwish.07@gmail.com>
- Re: [PATCH UPDATED 2.6.20-rc3] Remove all the unneeded k[mzc]alloc casts
- From: Rene Herman <rene.herman@gmail.com>
- Re: [PATCH UPDATED 2.6.20-rc3] Remove all the unneeded k[mzc]alloc casts
- References:
- [PATCH UPDATED 2.6.20-rc3] Remove all the unneeded k[mzc]alloc casts
- From: "Ahmed S. Darwish" <darwish.07@gmail.com>
- [PATCH UPDATED 2.6.20-rc3] Remove all the unneeded k[mzc]alloc casts
- Prev by Date: Re: [BUG] 2.6.20-rc3-mm1: can not mount root: i386: sched_clock using init data tsc_disable fix
- Next by Date: [PATCH] extract duplicated constants out of PIIX like drivers
- Previous by thread: Re: [PATCH UPDATED 2.6.20-rc3] Remove all the unneeded k[mzc]alloc casts
- Next by thread: Re: [PATCH UPDATED 2.6.20-rc3] Remove all the unneeded k[mzc]alloc casts
- Index(es):
![]() |