Don't perform swap when src == dst. #5041