Commit ddbf45cf authored by Simon Giesecke's avatar Simon Giesecke

Problem: redundant break after return

Solution: remove them
parent 3e7995f7
...@@ -592,8 +592,7 @@ int zmq::options_t::setsockopt (int option_, ...@@ -592,8 +592,7 @@ int zmq::options_t::setsockopt (int option_,
case ZMQ_ZAP_DOMAIN: case ZMQ_ZAP_DOMAIN:
return do_setsockopt_string_allow_empty_relaxed ( return do_setsockopt_string_allow_empty_relaxed (
optval_, optvallen_, &zap_domain, UCHAR_MAX); optval_, optvallen_, &zap_domain, UCHAR_MAX);
break;
// If curve encryption isn't built, these options provoke EINVAL // If curve encryption isn't built, these options provoke EINVAL
#ifdef ZMQ_HAVE_CURVE #ifdef ZMQ_HAVE_CURVE
case ZMQ_CURVE_SERVER: case ZMQ_CURVE_SERVER:
...@@ -869,7 +868,6 @@ int zmq::options_t::getsockopt (int option_, ...@@ -869,7 +868,6 @@ int zmq::options_t::getsockopt (int option_,
case ZMQ_ROUTING_ID: case ZMQ_ROUTING_ID:
return do_getsockopt (optval_, optvallen_, routing_id, return do_getsockopt (optval_, optvallen_, routing_id,
routing_id_size); routing_id_size);
break;
case ZMQ_RATE: case ZMQ_RATE:
if (is_int) { if (is_int) {
...@@ -1014,15 +1012,12 @@ int zmq::options_t::getsockopt (int option_, ...@@ -1014,15 +1012,12 @@ int zmq::options_t::getsockopt (int option_,
case ZMQ_SOCKS_PROXY: case ZMQ_SOCKS_PROXY:
return do_getsockopt (optval_, optvallen_, socks_proxy_address); return do_getsockopt (optval_, optvallen_, socks_proxy_address);
break;
case ZMQ_SOCKS_USERNAME: case ZMQ_SOCKS_USERNAME:
return do_getsockopt (optval_, optvallen_, socks_proxy_username); return do_getsockopt (optval_, optvallen_, socks_proxy_username);
break;
case ZMQ_SOCKS_PASSWORD: case ZMQ_SOCKS_PASSWORD:
return do_getsockopt (optval_, optvallen_, socks_proxy_password); return do_getsockopt (optval_, optvallen_, socks_proxy_password);
break;
case ZMQ_TCP_KEEPALIVE: case ZMQ_TCP_KEEPALIVE:
if (is_int) { if (is_int) {
...@@ -1068,15 +1063,12 @@ int zmq::options_t::getsockopt (int option_, ...@@ -1068,15 +1063,12 @@ int zmq::options_t::getsockopt (int option_,
case ZMQ_PLAIN_USERNAME: case ZMQ_PLAIN_USERNAME:
return do_getsockopt (optval_, optvallen_, plain_username); return do_getsockopt (optval_, optvallen_, plain_username);
break;
case ZMQ_PLAIN_PASSWORD: case ZMQ_PLAIN_PASSWORD:
return do_getsockopt (optval_, optvallen_, plain_password); return do_getsockopt (optval_, optvallen_, plain_password);
break;
case ZMQ_ZAP_DOMAIN: case ZMQ_ZAP_DOMAIN:
return do_getsockopt (optval_, optvallen_, zap_domain); return do_getsockopt (optval_, optvallen_, zap_domain);
break;
// If curve encryption isn't built, these options provoke EINVAL // If curve encryption isn't built, these options provoke EINVAL
#ifdef ZMQ_HAVE_CURVE #ifdef ZMQ_HAVE_CURVE
...@@ -1090,17 +1082,14 @@ int zmq::options_t::getsockopt (int option_, ...@@ -1090,17 +1082,14 @@ int zmq::options_t::getsockopt (int option_,
case ZMQ_CURVE_PUBLICKEY: case ZMQ_CURVE_PUBLICKEY:
return do_getsockopt_curve_key (optval_, optvallen_, return do_getsockopt_curve_key (optval_, optvallen_,
curve_public_key); curve_public_key);
break;
case ZMQ_CURVE_SECRETKEY: case ZMQ_CURVE_SECRETKEY:
return do_getsockopt_curve_key (optval_, optvallen_, return do_getsockopt_curve_key (optval_, optvallen_,
curve_secret_key); curve_secret_key);
break;
case ZMQ_CURVE_SERVERKEY: case ZMQ_CURVE_SERVERKEY:
return do_getsockopt_curve_key (optval_, optvallen_, return do_getsockopt_curve_key (optval_, optvallen_,
curve_server_key); curve_server_key);
break;
#endif #endif
case ZMQ_CONFLATE: case ZMQ_CONFLATE:
...@@ -1121,11 +1110,9 @@ int zmq::options_t::getsockopt (int option_, ...@@ -1121,11 +1110,9 @@ int zmq::options_t::getsockopt (int option_,
case ZMQ_GSSAPI_PRINCIPAL: case ZMQ_GSSAPI_PRINCIPAL:
return do_getsockopt (optval_, optvallen_, gss_principal); return do_getsockopt (optval_, optvallen_, gss_principal);
break;
case ZMQ_GSSAPI_SERVICE_PRINCIPAL: case ZMQ_GSSAPI_SERVICE_PRINCIPAL:
return do_getsockopt (optval_, optvallen_, gss_service_principal); return do_getsockopt (optval_, optvallen_, gss_service_principal);
break;
case ZMQ_GSSAPI_PLAINTEXT: case ZMQ_GSSAPI_PLAINTEXT:
if (is_int) { if (is_int) {
...@@ -1193,7 +1180,6 @@ int zmq::options_t::getsockopt (int option_, ...@@ -1193,7 +1180,6 @@ int zmq::options_t::getsockopt (int option_,
case ZMQ_BINDTODEVICE: case ZMQ_BINDTODEVICE:
return do_getsockopt (optval_, optvallen_, bound_device); return do_getsockopt (optval_, optvallen_, bound_device);
break;
case ZMQ_ZAP_ENFORCE_DOMAIN: case ZMQ_ZAP_ENFORCE_DOMAIN:
if (is_int) { if (is_int) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment