Just return result if w = 0