This paper concerns the energy conservation for the weak solutions of the compressible Navier–Stokes equations. Assume that the density is positively bounded, we work on the regularity assumption on the gradient of the velocity, and establish a Lp–Ls type condition for the energy equality to hold in the distributional sense in time. We mention that no regularity assumption on the density derivative is needed any more.