[Pcsclite-cvs-commit] r5524 - /trunk/PCSC/src/ifdwrapper.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Jan 18 15:57:37 UTC 2011


Author: rousseau
Date: Tue Jan 18 15:57:36 2011
New Revision: 5524

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5524
Log:
IFDPowerICC(): remove useless code

src/ifdwrapper.c:294:2: warning: Value stored to 'ret' is never read
        ret = ATRDecodeAtr(&sSmartCard, pucAtr, *pdwAtrLen);
        ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ifdwrapper.c:268:2: warning: Value stored to 'rv' is never read
        rv = IFD_SUCCESS;
        ^    ~~~~~~~~~~~

Modified:
    trunk/PCSC/src/ifdwrapper.c

Modified: trunk/PCSC/src/ifdwrapper.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/ifdwrapper.c?rev=5524&op=diff
==============================================================================
--- trunk/PCSC/src/ifdwrapper.c (original)
+++ trunk/PCSC/src/ifdwrapper.c Tue Jan 18 15:57:36 2011
@@ -249,10 +249,6 @@
 	PUCHAR pucAtr, PDWORD pdwAtrLen)
 {
 	RESPONSECODE rv;
-#ifndef PCSCLITE_STATIC_DRIVER
-	short ret;
-	SMARTCARD_EXTENSION sSmartCard;
-#endif
 	DWORD dwStatus;
 	UCHAR ucValue[1];
 	UCHAR dummyAtr[MAX_ATR_SIZE];
@@ -265,7 +261,6 @@
 	/*
 	 * Zero out everything
 	 */
-	rv = IFD_SUCCESS;
 	dwStatus = 0;
 	ucValue[0] = 0;
 
@@ -290,8 +285,6 @@
 
 #ifndef PCSCLITE_STATIC_DRIVER
 	rv = (*IFDH_power_icc) (rContext->slot, dwAction, pucAtr, pdwAtrLen);
-
-	ret = ATRDecodeAtr(&sSmartCard, pucAtr, *pdwAtrLen);
 #else
 	rv = IFDHPowerICC(rContext->slot, dwAction, pucAtr, pdwAtrLen);
 #endif




More information about the Pcsclite-cvs-commit mailing list