Improved for loop after conversion

Signed-off-by: Alessandro D'Aquino (elara) <alex@midokura.com>