diff options
| author | Daniel P. Berrange <berrange@redhat.com> | 2016-03-09 16:45:04 +0000 |
|---|---|---|
| committer | Daniel P. Berrange <berrange@redhat.com> | 2016-03-10 17:19:07 +0000 |
| commit | 317856cac87b2aa15d03982262a436f1d3d0a2b3 (patch) | |
| tree | 33d0b8af0358f6c83dbb36f487d50a736e76a849 /util/qemu-coroutine-io.c | |
| parent | f50dfe457f128632efa0a49e2b2a472e357e00f9 (diff) | |
| download | focaccia-qemu-317856cac87b2aa15d03982262a436f1d3d0a2b3.tar.gz focaccia-qemu-317856cac87b2aa15d03982262a436f1d3d0a2b3.zip | |
char: remove socket_try_connect method
The qemu_chr_open_socket_fd() method multiplexes three different actions into one method. The socket_try_connect() method is one of its callers, but it only ever want one specific action performed. By inlining that action into socket_try_connect() we see that there is not in fact any failure scenario, so there is not even any reason for socket_try_connect to exist. Just inline the asynchronous connection attempts directly at the places that need them. This shortens & clarifies the code. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'util/qemu-coroutine-io.c')
0 files changed, 0 insertions, 0 deletions