Cleanup a loop that couldn't possibly execute as the outer loop indexed was being reused by the inner loops, leaving the index at the cutoff point after the first iteration

cmr=v1.7.4:reviewer=edgar:subject=Cleanup loop in sharedfp