aboutsummaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-07-06 12:19:42 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-07-06 12:19:42 +0200
commit16cc1d80bd5a1f39b3ca1e85eb83be7e0d4358db (patch)
treeddb13f0c7cecb08a76d4db2f5bc7551f71561d5f /udev
parente3486aa8f8eb9d7222d5d1af5b7ba9b7fb044983 (diff)
downloadmkinitcpio-ykfde-16cc1d80bd5a1f39b3ca1e85eb83be7e0d4358db.tar.gz
mkinitcpio-ykfde-16cc1d80bd5a1f39b3ca1e85eb83be7e0d4358db.tar.zst
simplify error path
Diffstat (limited to 'udev')
-rw-r--r--udev/ykfde.c3
1 files changed, 1 insertions, 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");