fix coverity 263979 logically dead code

This commit is contained in:
Philippe Teuwen 2020-05-14 18:01:52 +02:00
parent 4e2d1e66ab
commit 982f4231f7

View file

@ -1367,7 +1367,8 @@ static int CmdHFFelicaRequestService(const char *Cmd) {
flags |= FELICA_RAW;
}
datalen = (datalen > PM3_CMD_DATA_SIZE) ? PM3_CMD_DATA_SIZE : datalen;
// Todo activate once datalen isn't hardcoded anymore...
// datalen = (datalen > PM3_CMD_DATA_SIZE) ? PM3_CMD_DATA_SIZE : datalen;
if (!custom_IDm && !check_last_idm(data, datalen)) {
return PM3_EINVARG;
}