diff options
author | 2011-07-28 14:46:04 +0200 | |
---|---|---|
committer | 2011-08-02 16:10:18 -0700 | |
commit | 193634ce7740e18a012c543fad0843c6af0440d9 (patch) | |
tree | 761c702c85ea3944a89a86fd961cf7ad79a82db0 /lib/mpi/mpi-bit.c | |
parent | staging: more missing slab.h inclusions (diff) | |
download | linux-dev-193634ce7740e18a012c543fad0843c6af0440d9.tar.xz linux-dev-193634ce7740e18a012c543fad0843c6af0440d9.zip |
drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.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/)
// <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: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions