diff options
| author | Julia Lawall <julia@diku.dk> | 2011-07-28 16:46:02 +0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-08-27 18:14:15 +0400 |
| commit | eb28dc39d3e82674584cc768b9757d1cae222a52 (patch) | |
| tree | 0bc832e66e0629a35c818d87607861e4be3ca610 /include/linux/platform_data | |
| parent | 93165b7774a04cf76bc46eb6c9181ab7a8b545d7 (diff) | |
| download | linux-eb28dc39d3e82674584cc768b9757d1cae222a52.tar.xz | |
[media] drivers/media/dvb/dvb-usb/usb-urb.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
// <smpl>
@@
expression e1,e2,ar;
@@
for(e1 = 0; e1 < e2; e1++) { <...
ar[
- e2
+ e1
]
...> }
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
