remove some cppcheck warnings

This commit is contained in:
Philippe Teuwen committed 2019-06-12 06:41:23 -07:00
1 parent dd9005719a
commit 1ebfa897c8
24 files changed
+145 -146

No files matched your search

+2 -6
View File
@@ -209,12 +209,8 @@ static int CmdHIDDemod(const char *Cmd) {
}
} else { //if bit 38 is not set then 37 bit format is used
fmtLen = 37;
fc = 0;
cardnum = 0;
if (fmtLen == 37) {
cardnum = (lo >> 1) & 0x7FFFF;
fc = ((hi & 0xF) << 12) | (lo >> 20);
}
cardnum = (lo >> 1) & 0x7FFFF;
fc = ((hi & 0xF) << 12) | (lo >> 20);
}
if (fmtLen == 32 && (lo & 0x40000000)) { //if 32 bit and Kastle bit set
PrintAndLogEx(SUCCESS, "HID Prox TAG (Kastle format) ID: %08x (%u) - Format Len: 32bit - CC: %u - FC: %u - Card: %u", lo, (lo >> 1) & 0xFFFF, cc, fc, cardnum);