aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorSandhya Bankar <[email protected]>2016-09-18 05:23:49 +0530
committerGreg Kroah-Hartman <[email protected]>2016-09-20 13:23:40 +0200
commit83a75e3f14667b334ecd53b6334407ace8679eed (patch)
treeeeacaae6968974c55625e60454545dcd9df090ef /tools/perf/scripts/python/bin
parent7d7005180a7eab473bca4c1fe807f0589561791e (diff)
Staging: lustre: Convert array index from the loop bound to the loop index.
Convert array index from the loop bound to the loop index. The structure cl_env_percpu[NR_CPUS] has been initializing for each possible cpu (i.e 0 to i). During initialization if any error will occurred, the error handling code should uninitialize cl_env_percpu upto i. But currently unitialization is repeatedly done for the same cl_env_percpu[i] element. This does not seems to be correct. Used below semantic patch to identify this issue: @@ expression e1,e2,ar; @@ for(e1 = 0; e1 < e2; e1++) { <... ar[ - e2 + e1 ] ...> } Signed-off-by: Sandhya Bankar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions