nfctyp3: Remove set but not used variable
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 28 Feb 2013 15:20:28 +0000 (16:20 +0100)
committerSamuel 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

index 31b7504..cb9d3b4 100644 (file)
@@ -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: