Remove dead code

card-flex.c:358:2: warning: Value stored to 'left' is never read
        left = *p++;
        ^      ~~~~
card-flex.c:358:10: warning: Value stored to 'p' is never read
        left = *p++;
                ^~~


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5163 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
ludovic.rousseau 2011-02-05 21:35:17 +00:00
parent 451121f9b5
commit e46c4ccd1f
1 changed files with 2 additions and 3 deletions

View File

@ -287,7 +287,7 @@ cryptoflex_process_file_attrs(sc_card_t *card, sc_file_t *file,
sc_context_t *ctx = card->ctx;
const u8 *p = buf + 2;
u8 b1, b2;
int left, is_mf = 0;
int is_mf = 0;
if (buflen < 14)
return -1;
@ -351,11 +351,10 @@ cryptoflex_process_file_attrs(sc_card_t *card, sc_file_t *file,
add_acl_entry(card, file, SC_AC_OP_INVALIDATE, (u8)(p[2] & 0x0F));
}
p += 3;
if (*p++)
if (*p)
file->status = SC_FILE_STATUS_ACTIVATED;
else
file->status = SC_FILE_STATUS_INVALIDATED;
left = *p++;
return cryptoflex_get_ac_keys(card, file);
}