In patients with both type 2 diabetes and obstructive sleep apnea, treatment with CPAP may reduce the risk for mortality.