diff options
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/rpc-lib/src/rpc-clnt.c | 5 | ||||
-rw-r--r-- | rpc/rpc-transport/socket/src/socket.c | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c index a9e43eb42f1..e8a8ea2ecd9 100644 --- a/rpc/rpc-lib/src/rpc-clnt.c +++ b/rpc/rpc-lib/src/rpc-clnt.c @@ -395,7 +395,6 @@ rpc_clnt_reconnect (void *conn_ptr) rpc_transport_t *trans = NULL; rpc_clnt_connection_t *conn = NULL; struct timespec ts = {0, 0}; - int32_t ret = 0; struct rpc_clnt *clnt = NULL; gf_boolean_t need_unref = _gf_false; @@ -420,8 +419,8 @@ rpc_clnt_reconnect (void *conn_ptr) gf_log (conn->name, GF_LOG_TRACE, "attempting reconnect"); - ret = rpc_transport_connect (trans, - conn->config.remote_port); + (void) rpc_transport_connect (trans, + conn->config.remote_port); rpc_clnt_ref (clnt); conn->reconnect = gf_timer_call_after (clnt->ctx, ts, diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c index deec0cbc6f4..ad578dd740c 100644 --- a/rpc/rpc-transport/socket/src/socket.c +++ b/rpc/rpc-transport/socket/src/socket.c @@ -412,13 +412,11 @@ static int __socket_cached_read (rpc_transport_t *this, struct iovec *opvector, int opcount) { socket_private_t *priv = NULL; - int sock = -1; struct gf_sock_incoming *in = NULL; int req_len = -1; int ret = -1; priv = this->private; - sock = priv->sock; in = &priv->incoming; req_len = iov_length (opvector, opcount); |