]> Git Repo - qemu.git/blobdiff - qemu-nbd.c
qemu-nbd: drop loop which can never loop
[qemu.git] / qemu-nbd.c
index 155b05840bd22ba50c11dd255ca24d669e0e3e2b..eb61c33acd490f3aa786db4b9388aa2823d17447 100644 (file)
@@ -202,12 +202,10 @@ static void *nbd_client_thread(void *arg)
     int ret;
     pthread_t show_parts_thread;
 
     int ret;
     pthread_t show_parts_thread;
 
-    do {
-        sock = unix_socket_outgoing(sockpath);
-        if (sock == -1) {
-            goto out;
-        }
-    } while (sock == -1);
+    sock = unix_socket_outgoing(sockpath);
+    if (sock == -1) {
+        goto out;
+    }
 
     ret = nbd_receive_negotiate(sock, NULL, &nbdflags,
                                 &size, &blocksize);
 
     ret = nbd_receive_negotiate(sock, NULL, &nbdflags,
                                 &size, &blocksize);
This page took 0.022906 seconds and 4 git commands to generate.