]> err.no Git - yubikey-personalization/commitdiff
miss-commited stuff
authorKlas Lindfors <klas@yubico.com>
Fri, 10 Jan 2014 10:10:11 +0000 (11:10 +0100)
committerKlas Lindfors <klas@yubico.com>
Fri, 10 Jan 2014 10:10:11 +0000 (11:10 +0100)
reverted parts of 944e83959d61890503610b902165872a8e9f9e81

ykcore/ykcore.c

index 85ff34710e6a4f2791f1e1a33b48f54244daacd7..7fa4b5b3f484d9b304dbcd36618e7372cba76663 100644 (file)
@@ -482,13 +482,8 @@ int yk_wait_for_key_status(YK_KEY *yk, uint8_t slot, unsigned int flags,
 
                /* Read a status report from the key */
                memset(data, 0, sizeof(data));
-               if (!_ykusb_read(yk, REPORT_TYPE_FEATURE, slot, (char *) &data, FEATURE_RPT_SIZE)) {
-                       if(yk_errno == YK_ENODATA) {
-                               yk_errno = 0;
-                               continue;
-                       }
+               if (!_ykusb_read(yk, REPORT_TYPE_FEATURE, slot, (char *) &data, FEATURE_RPT_SIZE))
                        return 0;
-               }
 
                if (last_data != NULL)
                        memcpy(last_data, data, sizeof(data));