diff --git a/dlib/optimization/optimization_solve_qp2_using_smo.h b/dlib/optimization/optimization_solve_qp2_using_smo.h index d85f09b97..2947f93c5 100644 --- a/dlib/optimization/optimization_solve_qp2_using_smo.h +++ b/dlib/optimization/optimization_solve_qp2_using_smo.h @@ -400,10 +400,7 @@ namespace dlib j_out = jn; } - if (j_out >= 0 && i_out >= 0) - return true; - else - return false; + return true; } // ------------------------------------------------------------------------------------