Program doesn't loop with Serial using switch and case

If getSerial returns a value, why not use it, instead of assigning the return value to a global?