[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110801.022759.1366729474517785485.davem@davemloft.net>
Date: Mon, 01 Aug 2011 02:27:59 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: julia@...u.dk
Cc: grant.likely@...retlab.ca, kernel-janitors@...r.kernel.org,
bhutchings@...arflare.com, shemminger@...tta.com,
eric.dumazet@...il.com, mirq-linux@...e.qmqm.pl,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree-discuss@...ts.ozlabs.org
Subject: Re: [PATCH 3/6] drivers/net/niu.c: adjust array index
From: Julia Lawall <julia@...u.dk>
Date: Thu, 28 Jul 2011 14:46:03 +0200
> From: Julia Lawall <julia@...u.dk>
>
> Convert array index from the loop bound to the loop index.
>
> A simplified version of the semantic patch that fixes this problem is as
> follows: (http://coccinelle.lip6.fr/)
>
> // <smpl>
> @@
> expression e1,e2,ar;
> @@
>
> for(e1 = 0; e1 < e2; e1++) { <...
> ar[
> - e2
> + e1
> ]
> ...> }
> // </smpl>
>
> Signed-off-by: Julia Lawall <julia@...u.dk>
Applied.
--
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