qemu-nbd: drop loop which can never loop
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Thu, 5 Jan 2012 13:16:07 +0000 (13:16 +0000)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 6 Jan 2012 15:09:53 +0000 (15:09 +0000)
commitdc10e8b3c556b582eb7919c92d0997b5f9a9d136
tree766d079387e2f0cc176b7be89c278bd067023396
parent7a3fc891ae3256e4fbf03b6ab6d3ced0dfaaaa27
qemu-nbd: drop loop which can never loop

For some reason nbd_client_thread() has a do..while loop which can never
loop, the condition is bogus because we would take a goto instead.  Drop
the loop.

Reported-by: Dr David Alan Gilbert <davidagilbert@uk.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
qemu-nbd.c