lcov: remove unnecessary loop