projects
/
platform
/
upstream
/
neard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85632f6
)
nfctyp3: Remove set but not used variable
author
Szymon Janc
<szymon.janc@tieto.com>
Thu, 28 Feb 2013 15:20:28 +0000
(16:20 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 4 Mar 2013 10:24:05 +0000
(11:24 +0100)
system_code in receive_system_code function was written but never read.
plugins/nfctype3.c
patch
|
blob
|
history
diff --git
a/plugins/nfctype3.c
b/plugins/nfctype3.c
index
31b7504
..
cb9d3b4
100644
(file)
--- 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: