 friction leads to dissipation of work into heat.In that case, the cycle is not reversible and the Clausius theorem becomes an inequality rather than an equality.Otherwise, since entropy is a state function, the required dumping of heat into the environment to dispose of excess entropy leads to a (minimal) reduction in efficiency.