Re: [PATCH] arch/powerpc: Eliminate double sizeof

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Feb 4, 2009, at 3:43 PM, 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)
- )

@@
type T;
@@

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

Signed-off-by: Julia Lawall <julia@xxxxxxx>
---
arch/powerpc/platforms/82xx/pq2ads-pci-pic.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

applied

- k
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux