Skip to content

Commit

Permalink
IFDSetPTS() and IFDPowerICC(): remove useless variable ucValue[]
Browse files Browse the repository at this point in the history
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]


git-svn-id: svn:https://anonscm.debian.org/svn/pcsclite/trunk/PCSC@5805 0ce88b0d-b2fd-0310-8134-9614164e65ea
  • Loading branch information
LudovicRousseau committed Jun 22, 2011
1 parent e1c31b2 commit 5760d1f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/ifdwrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ LONG IFDSetPTS(READER_CONTEXT * rContext, DWORD dwProtocol, UCHAR ucFlags,
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,
Expand All @@ -68,8 +67,6 @@ LONG IFDSetPTS(READER_CONTEXT * rContext, DWORD dwProtocol, UCHAR ucFlags,
* 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,
dwProtocol, ucFlags, ucPTS1, ucPTS2, ucPTS3);
Expand Down Expand Up @@ -249,7 +246,6 @@ LONG IFDPowerICC(READER_CONTEXT * rContext, DWORD dwAction,
{
RESPONSECODE rv;
DWORD dwStatus;
UCHAR ucValue[1];
UCHAR dummyAtr[MAX_ATR_SIZE];
DWORD dummyAtrLen = sizeof(dummyAtr);

Expand All @@ -261,7 +257,6 @@ LONG IFDPowerICC(READER_CONTEXT * rContext, DWORD dwAction,
* Zero out everything
*/
dwStatus = 0;
ucValue[0] = 0;

if (NULL == pucAtr)
pucAtr = dummyAtr;
Expand Down

0 comments on commit 5760d1f

Please sign in to comment.