REFACTOR: value assigned to cp here is unused. (PR #9672)

GitHub