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:
Aaron Jones 2016-09-15 11:37:00 +00:00
parent 5b900411bf
commit 163a4a9d06
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -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);