From 2f207eb3053f8408396c75c378aff236ecb110a3 Mon Sep 17 00:00:00 2001 From: Swapnil Ingle Date: Tue, 17 Nov 2020 05:37:40 -0500 Subject: Fix compiler errors for non-dbg build Signed-off-by: Swapnil Ingle --- samples/gpio-pci-idio-16.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'samples/gpio-pci-idio-16.c') 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; } -- cgit v1.1