A system is called Misner–Sharp system, if its gravitational energy is defined as its Misner–Sharp mass. Assuming the Misner–Sharp system is in adiabatic state, and making a variation with respective to rin (10)with a cosmological constant, we obtain