lkml.org 
[lkml]   [2008]   [Jun]   [27]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 27 Jun 2008 01:33:30 -0400
FromJeff Garzik <>
SubjectRe: [PATCH] drivers/net/r6040.c: Eliminate double sizeof
Julia Lawall wrote:
> From: Julia Lawall <julia@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)
> - )
> // </smpl>
> 
> Signed-off-by: Julia Lawall <julia@diku.dk>

applied




\
 
 \ /
  Last update: 2008-06-27 07:37    [from the cache]
©2003-2008