From 2c3aaf5f7050bac50e482256b879d4f9f3113bd3 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 28 Feb 2013 16:20:28 +0100 Subject: nfctyp3: Remove set but not used variable system_code in receive_system_code function was written but never read. --- plugins/nfctype3.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'plugins') diff --git a/plugins/nfctype3.c b/plugins/nfctype3.c index 31b7504..cb9d3b4 100644 --- a/plugins/nfctype3.c +++ b/plugins/nfctype3.c @@ -477,7 +477,6 @@ static int receive_system_code(uint8_t *resp, int length, void *data) struct t3_cookie *cookie = data; int err = 0; struct type3_cmd cmd; - uint16_t system_code; DBG("length: %d", length); @@ -492,8 +491,6 @@ static int receive_system_code(uint8_t *resp, int length, void *data) cookie->ic_type = resp[IC_TYPE_OFFSET]; memcpy(cookie->IDm, resp + OFS_IDM, LEN_ID); - system_code = ((uint16_t) (resp[length - 2])) << 8; - system_code |= resp[length - 1]; switch (resp[IC_TYPE_OFFSET]) { case FELICA_LITE_IC_TYPE: -- cgit v1.2.3