[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <67331C84-5400-4FE5-B6FA-395F13A482F8@kernel.crashing.org>
Date: Fri, 6 Feb 2009 10:44:44 -0600
From: Kumar Gala <galak@...nel.crashing.org>
To: Julia Lawall <julia@...u.dk>
Cc: linuxppc-dev@...abs.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] arch/powerpc: Eliminate double sizeof
On Feb 4, 2009, at 3:43 PM, Julia Lawall wrote:
> From: Julia Lawall <julia@...u.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@...u.dk>
> ---
> 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 linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists