Remove unnecessary code in ridge svd