This commit fixes svace warning about UNREACHABLE_CODE.
Change-Id: I5937a681e34fa29195026f64a4260a1c4fb2de01
Signed-off-by: Joohwan Kim <joohwani.kim@samsung.com>
#if defined(MBEDTLS_FS_IO)
if (opt.dhm_file != NULL) {
ret = mbedtls_ssl_conf_dh_param_ctx(&conf, &dhm);
+ if (ret != 0) {
+ mbedtls_printf(" failed\n mbedtls_ssl_conf_dh_param returned -0x%04X\n\n", -ret);
+ goto exit;
+ }
}
#endif
- if (ret != 0) {
- mbedtls_printf(" failed\n mbedtls_ssl_conf_dh_param returned -0x%04X\n\n", -ret);
- goto exit;
- }
#endif
if (opt.min_version != DFL_MIN_VERSION) {