mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
rpc: reformat the flow to make a bit more sense
Just remove useless "else". Best viewed with '-w'. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
5f71959667
commit
3951d4a6d3
@ -571,13 +571,14 @@ int virNetSocketNewConnectUNIX(const char *path,
|
||||
|
||||
retry:
|
||||
if (connect(fd, &remoteAddr.data.sa, remoteAddr.len) < 0) {
|
||||
int status = 0;
|
||||
pid_t pid = 0;
|
||||
|
||||
if (!spawnDaemon) {
|
||||
virReportSystemError(errno, _("Failed to connect socket to '%s'"),
|
||||
path);
|
||||
goto error;
|
||||
} else {
|
||||
int status = 0;
|
||||
pid_t pid = 0;
|
||||
}
|
||||
|
||||
if ((passfd = socket(PF_UNIX, SOCK_STREAM, 0)) < 0) {
|
||||
virReportSystemError(errno, "%s", _("Failed to create socket"));
|
||||
@ -631,7 +632,6 @@ int virNetSocketNewConnectUNIX(const char *path,
|
||||
if (virNetSocketForkDaemon(binary, passfd) < 0)
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
localAddr.len = sizeof(localAddr.data);
|
||||
if (getsockname(fd, &localAddr.data.sa, &localAddr.len) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user