[PATCH 1/10] MIPS: BCM47XX: Cocci spatch "noderef"

2013-09-20 Thread Thomas Meyer
sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch "misc/noderef.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/arch/mips/bcm47xx/sprom.c b/arch/mips/bcm47xx/sprom.c --- a/arch/mips/bcm47xx/sprom.c +++ b/arch/mips/bcm47xx/sprom.c @@ -

Re: [PATCH 1/10] MIPS: BCM47XX: Cocci spatch "noderef"

2013-09-19 Thread Hauke Mehrtens
On 09/19/2013 08:38 PM, tho...@m3y3r.de wrote: > sizeof when applied to a pointer typed expression gives the size of the > pointer. > Found by coccinelle spatch "misc/noderef.cocci" Thanks for spotting this. Is this a new rule or has just nobody checked that part of the kernel? The from field i