[PATCH] arch/powerpc: Eliminate double sizeof
Kumar Gala
galak at kernel.crashing.org
Sat Feb 7 03:44:44 EST 2009
On Feb 4, 2009, at 3:43 PM, Julia Lawall wrote:
> From: Julia Lawall <julia at diku.dk>
>
> 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)
> - )
>
> @@
> type T;
> @@
>
> - sizeof (
> sizeof (T)
> - )
> // </smpl>
>
> Signed-off-by: Julia Lawall <julia at diku.dk>
> ---
> arch/powerpc/platforms/82xx/pq2ads-pci-pic.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
applied
- k
More information about the Linuxppc-dev
mailing list