aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMark Einon <[email protected]>2012-11-12 21:16:28 +0000
committerGreg Kroah-Hartman <[email protected]>2012-11-13 15:06:46 -0800
commit87648933116f528b3cda64c4d80d9577277fe4f0 (patch)
treec26ef4790a52bb69cab16096411968c4b0f6399d /tools/perf/scripts/python/bin
parent9d10b221264b9383fcf8e8628f89e9859c05599d (diff)
staging: et131x: Avoid unnecessary calculations in for loop
In et131x_rx_dma_memory_alloc(), we loop over fbr_entries - the values of fbr_align and fbr_chunksize calculated in the loop do not depend on the loop counter and are the same for all loop iterations. Take the calculations of these values out of the loop, as we only need to calculate them once per loop, not once per loop iteration. Signed-off-by: Mark Einon <[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