From 881b5169e5210e7bbfe1b93ea81b345dfef08e51 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 27 Oct 2014 20:41:40 +0100 Subject: sim: reader_pcsc:Remove dead code PCSC_ERROR() macro is already performing error checking. Found by coverity. --- src/sim/reader_pcsc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3