L2P: Move offset outside the loop.

This allows the brackets in the case statement to be removed.