mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
removed dead check of uint8_t > 255
This commit is contained in:
parent
d13dee9046
commit
e50d95165c
1 changed files with 0 additions and 16 deletions
|
@ -984,10 +984,6 @@ int CmdHF14AMfEGet(const char *Cmd)
|
|||
}
|
||||
|
||||
blockNo = param_get8(Cmd, 0);
|
||||
if (blockNo >= 32 * 4 + 8 * 16) {
|
||||
PrintAndLog("Block number must be in [0..255] as in MIFARE classic.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
PrintAndLog(" ");
|
||||
if (!mfEmlGetMem(data, blockNo, 3)) {
|
||||
|
@ -1028,10 +1024,6 @@ int CmdHF14AMfESet(const char *Cmd)
|
|||
}
|
||||
|
||||
blockNo = param_get8(Cmd, 0);
|
||||
if (blockNo >= 32 * 4 + 8 * 16) {
|
||||
PrintAndLog("Block number must be in [0..255] as in MIFARE classic.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (param_gethex(Cmd, 1, memBlock, 32)) {
|
||||
PrintAndLog("block data must include 32 HEX symbols");
|
||||
|
@ -1269,10 +1261,6 @@ int CmdHF14AMfCSetBlk(const char *Cmd)
|
|||
}
|
||||
|
||||
blockNo = param_get8(Cmd, 0);
|
||||
if (blockNo >= 32 * 4 + 8 * 16) {
|
||||
PrintAndLog("Block number must be in [0..255] as in MIFARE classic.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (param_gethex(Cmd, 1, memBlock, 32)) {
|
||||
PrintAndLog("block data must include 32 HEX symbols");
|
||||
|
@ -1400,10 +1388,6 @@ int CmdHF14AMfCGetBlk(const char *Cmd) {
|
|||
}
|
||||
|
||||
blockNo = param_get8(Cmd, 0);
|
||||
if (blockNo >= 32 * 4 + 8 * 16) {
|
||||
PrintAndLog("Block number must be in [0..255] as in MIFARE classic.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
PrintAndLog("--block number:%02x ", blockNo);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue