From 16cc1d80bd5a1f39b3ca1e85eb83be7e0d4358db Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 6 Jul 2016 12:19:42 +0200 Subject: simplify error path --- udev/ykfde.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/udev/ykfde.c b/udev/ykfde.c index e39eaec..8014c00 100644 --- a/udev/ykfde.c +++ b/udev/ykfde.c @@ -282,7 +282,7 @@ int main(int argc, char **argv) { /* close Yubikey */ if (yk_close_key(yk) == 0) { perror("yk_close_key() failed"); - goto out20; + goto out30; } sprintf(challengefilename, CHALLENGEDIR "/challenge-%d", serial); @@ -373,7 +373,6 @@ out30: if (yk != NULL && yk_close_key(yk) == 0) perror("yk_close_key() failed"); -out20: /* release Yubikey */ if (yk_release() == 0) perror("yk_release() failed"); -- cgit v1.2.3-70-g09d2