Skip to content

Commit

Permalink
pcsc: remove unused function pcsc_initiator_deselect_target
Browse files Browse the repository at this point in the history
pcsc.c:763:12: warning: ‘pcsc_initiator_deselect_target’ defined but not used [-Wunused-function]
 static int pcsc_initiator_deselect_target(struct nfc_device *pnd)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • Loading branch information
LudovicRousseau committed May 22, 2020
1 parent 5294c02 commit 63cf0ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libnfc/drivers/pcsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,11 +760,13 @@ static int pcsc_initiator_select_passive_target(struct nfc_device *pnd, const n
return 1;
}

#if 0
static int pcsc_initiator_deselect_target(struct nfc_device *pnd)
{
pnd->last_error = pcsc_reconnect(pnd, SCARD_SHARE_DIRECT, 0, SCARD_LEAVE_CARD);
return pnd->last_error;
}
#endif

static int pcsc_initiator_transceive_bytes(struct nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, uint8_t *pbtRx, const size_t szRx, int timeout)
{
Expand Down

0 comments on commit 63cf0ac

Please sign in to comment.