Removed duplicate return check and added return check

This commit is contained in:
Ethan Looney
2020-10-30 13:19:12 -06:00
parent a5f86729f9
commit 8728eaf93f

View File

@ -29202,10 +29202,10 @@ static int test_wolfSSL_GetLoggingCb (void)
}
#endif
if (ret == 0) {
if (wolfSSL_GetLoggingCb() == NULL) {
ret = 0;
}
if (ret == 0) {
if (wolfSSL_GetLoggingCb() == NULL) {
ret = 0;
}
if (wolfSSL_GetLoggingCb() != NULL) {
ret = -1;
}