Superconductivity and in-plane resistivity in La2−xSrxCuO4