Macy’s Inc. returned to a fourth-quarter profit Tuesday as lower expenses helped the department store operator even as sales dipped.

During the holidays, Macy’s kept a tight lid on inventory to avoid having to clear items out at steep discounts, which cost it in 2008. The nation’s second-largest department store chain said these efforts helped it stay ahead of most of its major rivals during the holiday season.