[Pcsclite-git-commit] [PCSC] 16/16: Remove dead code

Ludovic Rousseau rousseau at moszumanska.debian.org
Thu May 11 16:26:05 UTC 2017


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository PCSC.

commit 582408c38397b7f36a30ec05cdbda06008d834ff
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Thu May 11 15:22:00 2017 +0200

    Remove dead code
    
    If rv indicates an error then the program has already exited using
    test_rv(rv, hContext, PANIC);
---
 src/testpcsc.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/testpcsc.c b/src/testpcsc.c
index 7fb177b..50b7311 100644
--- a/src/testpcsc.c
+++ b/src/testpcsc.c
@@ -463,12 +463,6 @@ wait_for_card_again:
 		free(pcReader);
 #endif
 
-	if (rv != SCARD_S_SUCCESS)
-	{
-		(void)SCardDisconnect(hCard, SCARD_RESET_CARD);
-		(void)SCardReleaseContext(hContext);
-	}
-
 	printf("Press enter: ");
 	(void)getchar();
 	printf("Testing SCardReconnect\t\t: ");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git



More information about the Pcsclite-cvs-commit mailing list