Simplify idle_loop()

No functional change