[libvirt] [PATCH] Fix statement not reached compiler error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# HG changeset patch
# User john.levon@xxxxxxx
# Date 1229399267 28800
# Node ID 77dceb31cae41057c4274517f5c3246e47545de3
# Parent  8b69f84c9498d05ae03f5389eb83290aaeab23e6
Fix statement not reached compiler error

Signed-off-by: John Levon <john.levon@xxxxxxx>

diff --git a/src/remote_internal.c b/src/remote_internal.c
--- a/src/remote_internal.c
+++ b/src/remote_internal.c
@@ -5090,7 +5090,6 @@ really_read_buf (virConnectPtr conn, str
                    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, str
                    VIR_ERR_RPC, _("socket closed unexpectedly"));
             return -1;
         }
-        return err;
-    }
-
-    return 0;
+    }
+
+    return err;
 }
 
 static int

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]