Skip to content

Commit

Permalink
IFDPowerICC(): remove useless code
Browse files Browse the repository at this point in the history
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;
        ^    ~~~~~~~~~~~


git-svn-id: svn:https://anonscm.debian.org/svn/pcsclite/trunk/PCSC@5524 0ce88b0d-b2fd-0310-8134-9614164e65ea
  • Loading branch information
LudovicRousseau committed Jan 18, 2011
1 parent bb1ada0 commit 864970a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/ifdwrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,6 @@ LONG IFDPowerICC(READER_CONTEXT * rContext, DWORD dwAction,
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];
Expand All @@ -265,7 +261,6 @@ LONG IFDPowerICC(READER_CONTEXT * rContext, DWORD dwAction,
/*
* Zero out everything
*/
rv = IFD_SUCCESS;
dwStatus = 0;
ucValue[0] = 0;

Expand All @@ -290,8 +285,6 @@ LONG IFDPowerICC(READER_CONTEXT * rContext, DWORD dwAction,

#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
Expand Down

0 comments on commit 864970a

Please sign in to comment.