odp-util: Use switch for checking values of an enum.