Re: [PATCH] drivers/net/r6040.c: Eliminate double sizeof

From: Jeff Garzik
Date: Fri Jun 27 2008 - 01:34:31 EST


Julia Lawall wrote:
From: Julia Lawall <julia@xxxxxxx>

Taking sizeof the result of sizeof is quite strange and does not seem to be
what is wanted here.

This was fixed using the following semantic patch.
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
expression E;
@@

- sizeof (
sizeof (E)
- )
// </smpl>

Signed-off-by: Julia Lawall <julia@xxxxxxx>

applied


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/