]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio scsi ui: Error-check qio_channel_socket_connect_sync() the same way
authorMarkus Armbruster <armbru@redhat.com>
Wed, 23 Jul 2025 13:32:57 +0000 (15:32 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 1 Sep 2025 11:11:13 +0000 (13:11 +0200)
commitec14a3de622ae30a8afa78b6f564bc743b753ee1
treecd63b5ef85e13f54572f4a70b4d79c1860bc284d
parentb2e4534a2c9ce3d20ba44d855f1e2b71cc53c3a3
vfio scsi ui: Error-check qio_channel_socket_connect_sync() the same way

qio_channel_socket_connect_sync() returns 0 on success, and -1 on
failure, with errp set.  Some callers check the return value, and some
check whether errp was set.

For consistency, always check the return value, and always check it's
negative.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20250723133257.1497640-3-armbru@redhat.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
hw/vfio-user/proxy.c
scsi/pr-manager-helper.c
ui/input-barrier.c