registry: simplify conditionless loops