From 63cf0acb0b59012ea76b925b0818776762ad052c Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 22 May 2020 10:13:52 +0200 Subject: [PATCH] pcsc: remove unused function pcsc_initiator_deselect_target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- libnfc/drivers/pcsc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libnfc/drivers/pcsc.c b/libnfc/drivers/pcsc.c index 73d0370e..e9ad7dc5 100644 --- a/libnfc/drivers/pcsc.c +++ b/libnfc/drivers/pcsc.c @@ -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) {