summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-02-28 16:20:28 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-03-04 11:24:05 +0100
commit2c3aaf5f7050bac50e482256b879d4f9f3113bd3 (patch)
tree4b3814f112996acd295a0ce6cd1393060e83b6f4 /plugins
parent85632f6a13259df7f999be820db750142fec7fa4 (diff)
downloadneard-2c3aaf5f7050bac50e482256b879d4f9f3113bd3.tar.gz
neard-2c3aaf5f7050bac50e482256b879d4f9f3113bd3.tar.bz2
neard-2c3aaf5f7050bac50e482256b879d4f9f3113bd3.zip
nfctyp3: Remove set but not used variable
system_code in receive_system_code function was written but never read.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/nfctype3.c3
1 files changed, 0 insertions, 3 deletions
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: