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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Jun 22 07:06:51 UTC 2011


Author: rousseau
Date: Wed Jun 22 07:06:50 2011
New Revision: 5805

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5805
Log:
IFDSetPTS() and IFDPowerICC(): remove useless variable ucValue[]

ifdwrapper.c: In function `IFDSetPTS':
ifdwrapper.c:50:8: warning: variable `ucValue' set but not used
[-Wunused-but-set-variable]
ifdwrapper.c: In function `IFDPowerICC':
ifdwrapper.c:252:8: warning: variable `ucValue' set but not used
[-Wunused-but-set-variable]

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=5805&op=diff
==============================================================================
--- trunk/PCSC/src/ifdwrapper.c (original)
+++ trunk/PCSC/src/ifdwrapper.c Wed Jun 22 07:06:50 2011
@@ -47,7 +47,6 @@
 	UCHAR ucPTS1, UCHAR ucPTS2, UCHAR ucPTS3)
 {
 	RESPONSECODE rv = IFD_SUCCESS;
-	UCHAR ucValue[1];
 
 #ifndef PCSCLITE_STATIC_DRIVER
 	RESPONSECODE(*IFDH_set_protocol_parameters) (DWORD, DWORD, UCHAR,
@@ -67,8 +66,6 @@
 	 * This avoids to renegotiate the protocol and confuse the card
 	 * Error returned by CCID driver is: CCID_Receive Procedure byte conflict
 	 */
-
-	ucValue[0] = rContext->slot;
 
 #ifndef PCSCLITE_STATIC_DRIVER
 	rv = (*IFDH_set_protocol_parameters) (rContext->slot,
@@ -249,7 +246,6 @@
 {
 	RESPONSECODE rv;
 	DWORD dwStatus;
-	UCHAR ucValue[1];
 	UCHAR dummyAtr[MAX_ATR_SIZE];
 	DWORD dummyAtrLen = sizeof(dummyAtr);
 
@@ -261,7 +257,6 @@
 	 * Zero out everything
 	 */
 	dwStatus = 0;
-	ucValue[0] = 0;
 
 	if (NULL == pucAtr)
 		pucAtr = dummyAtr;




More information about the Pcsclite-cvs-commit mailing list