From: Julia Lawall Date: Thu, 28 Jul 2011 12:46:05 +0000 (+0200) Subject: ALSA: sound/core/pcm_compat.c: adjust array index X-Git-Tag: v3.1-rc1~87^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca9380fd68514c7bc952282c1b4fc70607e9fe43;p=pandora-kernel.git ALSA: sound/core/pcm_compat.c: adjust array index 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/) // @@ expression e1,e2,ar; @@ for(e1 = 0; e1 < e2; e1++) { <... ar[ - e2 + e1 ] ...> } // Signed-off-by: Julia Lawall Cc: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed