registry: simplify conditionless loops
Merge pull request #687 from bcwaldon/clean

registry: simplify conditionless loops