Samsung's operating profit came in line with guidance, with strong demand for its memory chips.