diff options
author | Harald Welte <laforge@gnumonks.org> | 2014-10-27 20:41:40 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-10-27 20:46:40 +0100 |
commit | 881b5169e5210e7bbfe1b93ea81b345dfef08e51 (patch) | |
tree | 859d699fbfa121894bdff43b23fc64f91faeb640 | |
parent | b0310dd376aa4a5058e2601800b81ac2ff4cf421 (diff) |
sim: reader_pcsc:Remove dead code
PCSC_ERROR() macro is already performing error checking.
Found by coverity.
-rw-r--r-- | src/sim/reader_pcsc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/sim/reader_pcsc.c b/src/sim/reader_pcsc.c index c52df31f..f020142e 100644 --- a/src/sim/reader_pcsc.c +++ b/src/sim/reader_pcsc.c @@ -71,8 +71,6 @@ static struct osim_reader_hdl *pcsc_reader_open(int num, const char *id, void *c rc = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &st->hContext); PCSC_ERROR(rc, "SCardEstablishContext"); - if (rc != SCARD_S_SUCCESS) - goto end; dwReaders = SCARD_AUTOALLOCATE; rc = SCardListReaders(st->hContext, NULL, (LPSTR)&mszReaders, &dwReaders); |