From 8171dd39600c6a14808077c5fc6938650185b0ee Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Tue, 31 Aug 2010 10:20:24 +0000 Subject: [PATCH] Remove an irrelevant FIXME. The check is already done by the PICC and we may not have access to the required information to do the check from the library. Additionally, the mifare_desfire_change_key() would require different keys to operate if we detected an error, so no recovery of any kind is possible. --- libfreefare/mifare_desfire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreefare/mifare_desfire.c b/libfreefare/mifare_desfire.c index 5be37d4..e920acf 100644 --- a/libfreefare/mifare_desfire.c +++ b/libfreefare/mifare_desfire.c @@ -435,7 +435,7 @@ mifare_desfire_change_key (MifareTag tag, uint8_t key_no, MifareDESFireKey new_k uint8_t data[24]; - if ((MIFARE_DESFIRE (tag)->authenticated_key_no != key_no) /* FIXME && (ChangeKey key != 0x0E)*/) { + if (MIFARE_DESFIRE (tag)->authenticated_key_no != key_no) { if (old_key) { memcpy (data, old_key->data, 16); } else {