Office Depot reports smaller-than-expected loss amid cost cuts