Remove dead code
pkcs15-openpgp.c:110:2: warning: Value stored to 'length' is never read length = r; ^ ~ git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5178 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
7c81ad9aa3
commit
f8fc900c20
|
@ -84,7 +84,6 @@ sc_pkcs15emu_openpgp_init(sc_pkcs15_card_t *p15card)
|
|||
sc_context_t *ctx = card->ctx;
|
||||
char string[256];
|
||||
u8 buffer[256];
|
||||
size_t length;
|
||||
int r, i;
|
||||
|
||||
set_string(&p15card->tokeninfo->label, "OpenPGP Card");
|
||||
|
@ -107,7 +106,6 @@ sc_pkcs15emu_openpgp_init(sc_pkcs15_card_t *p15card)
|
|||
/* Get Application Related Data (006E) */
|
||||
if ((r = sc_get_data(card, 0x006E, buffer, sizeof(buffer))) < 0)
|
||||
goto failed;
|
||||
length = r;
|
||||
|
||||
/* TBD: extract algorithm info */
|
||||
|
||||
|
|
Loading…
Reference in New Issue