On Thu, 2007-08-30 at 22:20 +0200, Jesper Juhl wrote: > Ok, I must admit I didn't check with sparse since it seemed pointless > - we usually never cast void pointers to other pointer types, > specifically because the C language nicely guarantees that the right > thing will happen without the cast. Sometimes we have to cast them to > integer types, su sure we need the cast there. But what on earth > makes a "zd_addr_t *" so special that we have to explicitly cast a > "void *" to that type? http://marc.info/?l=linux-netdev&m=117113743902549&w=1 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH] Don't needlessly initialize variable to NULL in zd_chip (was: Re: [PATCH 13/30] net: Don't do pointless kmalloc return value casts in zd1211 driver)
- From: Jesper Juhl <jesper.juhl@gmail.com>
- [PATCH] Don't needlessly initialize variable to NULL in zd_chip (was: Re: [PATCH 13/30] net: Don't do pointless kmalloc return value casts in zd1211 driver)
- References:
- [PATCH 01/30] ia64: Remove unnecessary cast of allocation return value in sn_hwperf_enum_objects()
- From: Jesper Juhl <jesper.juhl@gmail.com>
- Re: [PATCH 13/30] net: Don't do pointless kmalloc return value casts in zd1211 driver
- From: Daniel Drake <dsd@gentoo.org>
- Re: [PATCH 13/30] net: Don't do pointless kmalloc return value casts in zd1211 driver
- From: "Jesper Juhl" <jesper.juhl@gmail.com>
- [PATCH 01/30] ia64: Remove unnecessary cast of allocation return value in sn_hwperf_enum_objects()
- Prev by Date: Re: NFS woes again
- Next by Date: Re: [PATCH] sysctl: Deprecate sys_sysctl in a user space visible fashion.
- Previous by thread: Re: [PATCH 13/30] net: Don't do pointless kmalloc return value casts in zd1211 driver
- Next by thread: [PATCH] Don't needlessly initialize variable to NULL in zd_chip (was: Re: [PATCH 13/30] net: Don't do pointless kmalloc return value casts in zd1211 driver)
- Index(es):
![]() |