diff options
author | Swapnil Ingle <swapnil.ingle@nutanix.com> | 2020-11-17 05:37:40 -0500 |
---|---|---|
committer | Swapnil Ingle <swapnil.ingle@nutanix.com> | 2020-11-17 11:29:25 -0500 |
commit | 2f207eb3053f8408396c75c378aff236ecb110a3 (patch) | |
tree | a6b537c0d303e6f541446888c577b4e412677650 /samples/gpio-pci-idio-16.c | |
parent | 1d339ffea368f4821055cbac1726bb76d67923da (diff) | |
download | libvfio-user-2f207eb3053f8408396c75c378aff236ecb110a3.zip libvfio-user-2f207eb3053f8408396c75c378aff236ecb110a3.tar.gz libvfio-user-2f207eb3053f8408396c75c378aff236ecb110a3.tar.bz2 |
Fix compiler errors for non-dbg build
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'samples/gpio-pci-idio-16.c')
-rw-r--r-- | samples/gpio-pci-idio-16.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c index 9a79d0c..d9bfa0e 100644 --- a/samples/gpio-pci-idio-16.c +++ b/samples/gpio-pci-idio-16.c @@ -114,9 +114,6 @@ int main(int argc, char *argv[]) lm_ctx = lm_ctx_create(&dev_info); if (lm_ctx == NULL) { - if (errno == EINTR) { - goto out; - } fprintf(stderr, "failed to initialize device emulation: %m\n"); return -1; } @@ -126,7 +123,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "failed to realize device emulation: %m\n"); } } -out: + lm_ctx_destroy(lm_ctx); return ret; } |