aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-10-27 20:41:40 +0100
committerHarald Welte <laforge@gnumonks.org>2014-10-27 20:46:40 +0100
commit881b5169e5210e7bbfe1b93ea81b345dfef08e51 (patch)
tree859d699fbfa121894bdff43b23fc64f91faeb640 /src
parentb0310dd376aa4a5058e2601800b81ac2ff4cf421 (diff)
sim: reader_pcsc:Remove dead code
PCSC_ERROR() macro is already performing error checking. Found by coverity.
Diffstat (limited to 'src')
-rw-r--r--src/sim/reader_pcsc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/sim/reader_pcsc.c b/src/sim/reader_pcsc.c
index c52df31..f020142 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);