[Pcsclite-cvs-commit] r5843 - /trunk/PCSC/src/winscard.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Jul 6 12:10:32 UTC 2011


Author: rousseau
Date: Wed Jul  6 12:10:32 2011
New Revision: 5843

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5843
Log:
SCardStatus(): remove dead code

coverity: Event dead_error_condition: On this path, the condition "rv !=
0L" cannot be true.

Modified:
    trunk/PCSC/src/winscard.c

Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=5843&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Wed Jul  6 12:10:32 2011
@@ -1221,12 +1221,6 @@
 	if (rv != SCARD_S_SUCCESS)
 		return rv;
 
-	/*
-	 * Cannot find the hCard in this context
-	 */
-	if (rv != SCARD_S_SUCCESS)
-		return rv;
-
 	if (rContext->readerState->cardAtrLength > MAX_ATR_SIZE)
 		return SCARD_F_INTERNAL_ERROR;
 




More information about the Pcsclite-cvs-commit mailing list