diff options
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; } |