io: tls: remove unused conditional and initialize variable
@@ -357,14 +357,13 @@ int net_io_tls_handshake(void *_u_conn, void *_th)
goto error;
}
+ flag = 0;
if (ret == MBEDTLS_ERR_SSL_WANT_WRITE) {
flag = MK_EVENT_WRITE;
}
else if (ret == MBEDTLS_ERR_SSL_WANT_READ) {
flag = MK_EVENT_READ;
}
- else {
- }
/*
* If there are no coroutine thread context (th == NULL) it means this
