cktop.c, #7/14, invert a trailing "if"

This commit is contained in:
rlar 2016-07-24 09:56:17 +02:00
parent 761e556ac2
commit 0482f57bb7
1 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,9 @@ CKTop (CKTcircuit * ckt, long int firstmode, long int continuemode,
}
if (converged != 0) {
if (converged == 0)
return converged;
/* no convergence on the first try, so we do something else */
/* first, check if we should try gmin stepping */
@ -77,7 +79,6 @@ CKTop (CKTcircuit * ckt, long int firstmode, long int continuemode,
/* gtri - end - wbk - add convergence problem reporting flags */
#endif
}
return (converged);
}