summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-03-09 16:45:04 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:49:36 -0600
commit4b8c11b5f884d6d04bb4ea946b7c92b7cd91f756 (patch)
tree43224b883884ca23f6aa30c7f2bc060a4afdb398 /qapi
parentddbe962066d2fbafa22d3dd98bc4ab045a1b04a0 (diff)
downloadhqemu-4b8c11b5f884d6d04bb4ea946b7c92b7cd91f756.zip
hqemu-4b8c11b5f884d6d04bb4ea946b7c92b7cd91f756.tar.gz
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 'qapi')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud