From 5e4c83cc2fec8d17707b1134347a0ab834fc0a2e Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 12 May 2020 10:30:14 +0200 Subject: [PATCH] redundant --- client/src/cmdhficlass.c | 4 ++-- client/src/cmdhfmf.c | 2 +- client/src/cmdlft55xx.c | 12 ++++++------ client/src/cmdlfti.c | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index b277820e2..0107372c7 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -225,7 +225,7 @@ static int usage_hf_iclass_calc_newkey(void) { PrintAndLogEx(NORMAL, _YELLOW_("\thf iclass calcnewkey o 1122334455667788 n 2233445566778899")); PrintAndLogEx(NORMAL, "\nNOTE: * = required"); PrintAndLogEx(NORMAL, ""); - return PM3_SUCCESS;; + return PM3_SUCCESS; } static int usage_hf_iclass_managekeys(void) { PrintAndLogEx(NORMAL, "Manage iClass Keys in client memory:\n"); @@ -315,7 +315,7 @@ static int usage_hf_iclass_chk(void) { PrintAndLogEx(NORMAL, _YELLOW_("\thf iclass chk f dictionaries/iclass_default_keys.dic")); PrintAndLogEx(NORMAL, _YELLOW_("\thf iclass chk f dictionaries/iclass_default_keys.dic e")); PrintAndLogEx(NORMAL, ""); - return PM3_SUCCESS;; + return PM3_SUCCESS; } static int usage_hf_iclass_lookup(void) { PrintAndLogEx(NORMAL, "Lookup keys takes some sniffed trace data and tries to verify what key was used against a dictionary file\n"); diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 50f3d9de1..676fe6505 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -2921,7 +2921,7 @@ static int CmdHF14AMfChk(const char *Cmd) { } keyBlock = p; } - PrintAndLogEx(NORMAL, "[%2d] key %s", keycnt, sprint_hex((keyBlock + 6 * keycnt), 6));; + PrintAndLogEx(NORMAL, "[%2d] key %s", keycnt, sprint_hex((keyBlock + 6 * keycnt), 6)); keycnt++; } else if (clen == 1) { if (ctmp == 't') { transferToEml = 1; continue; } diff --git a/client/src/cmdlft55xx.c b/client/src/cmdlft55xx.c index 47c661bf4..3c0c46077 100644 --- a/client/src/cmdlft55xx.c +++ b/client/src/cmdlft55xx.c @@ -1619,7 +1619,7 @@ static int CmdT55xxWakeUp(const char *Cmd) { uint32_t password = 0; uint8_t cmdp = 0; bool errors = false; - uint8_t downlink_mode = config.downlink_mode;; + uint8_t downlink_mode = config.downlink_mode; while (param_getchar(Cmd, cmdp) != 0x00 && !errors) { switch (tolower(param_getchar(Cmd, cmdp))) { @@ -1675,7 +1675,7 @@ static int CmdT55xxWriteBlock(const char *Cmd) { bool errors = false; bool validate = false; uint8_t cmdp = 0; - uint32_t downlink_mode = config.downlink_mode;; + uint32_t downlink_mode = config.downlink_mode; while (param_getchar(Cmd, cmdp) != 0x00 && !errors) { switch (tolower(param_getchar(Cmd, cmdp))) { @@ -1815,7 +1815,7 @@ static int CmdT55xxDangerousRaw(const char *Cmd) { static int CmdT55xxReadTrace(const char *Cmd) { bool frombuff = false; - uint8_t downlink_mode = config.downlink_mode;; + uint8_t downlink_mode = config.downlink_mode; uint8_t cmdp = 0; bool errors = false; @@ -2252,7 +2252,7 @@ static int CmdT55xxDump(const char *Cmd) { uint32_t password = 0; uint8_t override = 0; - uint8_t downlink_mode = config.downlink_mode;; + uint8_t downlink_mode = config.downlink_mode; bool usepwd = false; bool errors = false; uint8_t cmdp = 0; @@ -2455,7 +2455,7 @@ static int CmdT55xxRestore(const char *Cmd) { uint32_t password = 0; uint8_t override = 0; - uint8_t downlink_mode = config.downlink_mode;; + uint8_t downlink_mode = config.downlink_mode; bool usepwd = false; bool errors = false; uint8_t cmdp = 0; @@ -2809,7 +2809,7 @@ static void t55x7_create_config_block(int tagtype) { static int CmdResetRead(const char *Cmd) { - uint8_t downlink_mode = config.downlink_mode;; + uint8_t downlink_mode = config.downlink_mode; uint8_t flags = 0; uint8_t cmdp = 0; bool errors = false; diff --git a/client/src/cmdlfti.c b/client/src/cmdlfti.c index 1c0dcbe1e..5a088d3c4 100644 --- a/client/src/cmdlfti.c +++ b/client/src/cmdlfti.c @@ -87,13 +87,13 @@ static int CmdTIDemod(const char *Cmd) { int convLen = (highLen > lowLen) ? highLen : lowLen; uint16_t crc; int i, j, TagType; - int lowSum = 0, highSum = 0;; + int lowSum = 0, highSum = 0; int lowTot = 0, highTot = 0; int retval = PM3_ESOFT; for (i = 0; i < GraphTraceLen - convLen; i++) { lowSum = 0; - highSum = 0;; + highSum = 0; for (j = 0; j < lowLen; j++) { lowSum += LowTone[j] * GraphBuffer[i + j];