mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-10 09:33:48 +00:00
Remove dead code
The local variable bFailure is set before a return.
nfc-mfclassic.c:319:11: warning: Value stored to 'bFailure' is never read
bFailure = true;
^ ~~~~
This commit is contained in:
@@ -316,7 +316,6 @@ read_card(int read_unlocked)
|
|||||||
if (nfc_initiator_mifare_cmd(pnd, MC_READ, iBlock, &mp)) {
|
if (nfc_initiator_mifare_cmd(pnd, MC_READ, iBlock, &mp)) {
|
||||||
memcpy(mtDump.amb[iBlock].mbd.abtData, mp.mpd.abtData, 16);
|
memcpy(mtDump.amb[iBlock].mbd.abtData, mp.mpd.abtData, 16);
|
||||||
} else {
|
} else {
|
||||||
bFailure = true;
|
|
||||||
printf("!\nError: unable to read block 0x%02x\n", iBlock);
|
printf("!\nError: unable to read block 0x%02x\n", iBlock);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user