Cristiano Ronaldo was held scoreless on his return to action, but it mattered little as Portugal eased past Algeria.