From ded70984f3d0949ba2338021049a53b2a32d3b7d Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 17 Dec 2008 21:50:02 +0000 Subject: [PATCH] Fix unreachable statement (John Levon) --- ChangeLog | 5 +++++ src/remote_internal.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9f07e202ff..6000f409d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Dec 17 21:49:39 GMT 2008 Daniel P. Berrange + + * src/remote_internal.c: Fix unreachable return statement + (John Levon) + Wed Dec 17 21:45:39 GMT 2008 Daniel P. Berrange Use correct type for domain events callbacks args (John Levon) diff --git a/src/remote_internal.c b/src/remote_internal.c index 8e747144d5..45ecbc295a 100644 --- a/src/remote_internal.c +++ b/src/remote_internal.c @@ -5090,7 +5090,6 @@ really_read_buf (virConnectPtr conn, struct private_data *priv, VIR_ERR_RPC, _("socket closed unexpectedly")); return -1; } - return err; } else { reread: err = recv (priv->sock, bytes, len, 0); @@ -5106,10 +5105,9 @@ really_read_buf (virConnectPtr conn, struct private_data *priv, VIR_ERR_RPC, _("socket closed unexpectedly")); return -1; } - return err; } - return 0; + return err; } static int -- GitLab