arch/powerpc: Eliminate double sizeof
authorJulia Lawall <julia@diku.dk>
Wed, 4 Feb 2009 21:43:04 +0000 (22:43 +0100)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 6 Feb 2009 16:44:28 +0000 (10:44 -0600)
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@diku.dk>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

No differences found