From: Mark Einon Date: Mon, 12 Nov 2012 21:16:28 +0000 (+0000) Subject: staging: et131x: Avoid unnecessary calculations in for loop X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~445 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87648933116f528b3cda64c4d80d9577277fe4f0;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed