Re: [PATCH 13/30] net: Don't do pointless kmalloc return value casts in zd1211 driver
From: Joe Perches <joe@perches.com>
Date: 2007-08-30 22:20:21
Also in:
lkml, netdev
From: Joe Perches <joe@perches.com>
Date: 2007-08-30 22:20:21
Also in:
lkml, netdev
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