A person mistakenly gives Salaam after 2 rak'ahs of a 4-rak'ah prayer, thinking the prayer was complete. What should be done if no incompatible act has occurred?

Sujud al-Sahw: Cause, Method, Timing, and Special Cases