diff options
author | John Levon <john.levon@nutanix.com> | 2021-04-14 13:14:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 13:14:13 +0100 |
commit | 2e50c5667ce8724b0b7963255d3016efbb1f568a (patch) | |
tree | 9df7b544d28eafb18be94e03a43a66a347c41ffb /samples | |
parent | 29dbda6cfcbd4093103f5c032b69ecf109b1eccb (diff) | |
download | libvfio-user-2e50c5667ce8724b0b7963255d3016efbb1f568a.zip libvfio-user-2e50c5667ce8724b0b7963255d3016efbb1f568a.tar.gz libvfio-user-2e50c5667ce8724b0b7963255d3016efbb1f568a.tar.bz2 |
libvfio-user.c: use ERROR_INT() (#433)
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/client.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/samples/client.c b/samples/client.c index 797cb00..0647328 100644 --- a/samples/client.c +++ b/samples/client.c @@ -1270,12 +1270,7 @@ int main(int argc, char *argv[]) * it's the client that creates and provides the FD. Do we need to save some * state in the migration data? */ - ret = configure_irqs(sock); - if (ret < 0) { - errx(EXIT_FAILURE, "failed to configure IRQs on destination server: %s", - strerror(-ret)); - } - irq_fd = ret; + irq_fd = configure_irqs(sock); wait_for_irq(irq_fd); |