remove superfluous code, Martin Paljak <martin@paljak.pri.ee>

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2030 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2004-12-21 11:03:57 +00:00
parent 3d75aeeaff
commit bea5746094
1 changed files with 1 additions and 11 deletions

View File

@ -510,9 +510,8 @@ static int pcsc_init(struct sc_context *ctx, void **reader_data)
char *reader_buf, *p;
const char *mszGroups = NULL;
SCARDCONTEXT pcsc_ctx;
int r, i;
int r;
struct pcsc_global_private_data *gpriv;
scconf_block **blocks = NULL, *conf_block = NULL;
rv = SCardEstablishContext(SCARD_SCOPE_GLOBAL,
NULL,
@ -594,15 +593,6 @@ static int pcsc_init(struct sc_context *ctx, void **reader_data)
while (*p++ != 0);
} while (p < (reader_buf + reader_buf_size - 1));
free(reader_buf);
for (i = 0; ctx->conf_blocks[i] != NULL; i++) {
blocks = scconf_find_blocks(ctx->conf, ctx->conf_blocks[i],
"reader_driver", "pcsc");
conf_block = blocks[0];
free(blocks);
if (conf_block != NULL)
break;
}
return 0;
}