MbedTLS: Remove default case in switch for an enum with all values
Having default here doesn't make sense (using something not in that enum will generate a compile-time warning).
This commit is contained in:
parent
5b900411bf
commit
163a4a9d06
1 changed files with 0 additions and 4 deletions
|
@ -131,10 +131,6 @@ rb_ssl_init_fd(rb_fde_t *const F, rb_fd_tls_direction dir)
|
||||||
case RB_FD_TLS_DIRECTION_OUT:
|
case RB_FD_TLS_DIRECTION_OUT:
|
||||||
mbed_config = &rb_mbedtls_cfg->client_cfg;
|
mbed_config = &rb_mbedtls_cfg->client_cfg;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
rb_lib_log("rb_ssl_init_fd: bad direction");
|
|
||||||
abort();
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rb_mbedtls_ssl_context *const mbed_ssl_ctx = rb_malloc(sizeof *mbed_ssl_ctx);
|
rb_mbedtls_ssl_context *const mbed_ssl_ctx = rb_malloc(sizeof *mbed_ssl_ctx);
|
||||||
|
|
Loading…
Reference in a new issue