From 6b743233695199355328b75d3b4c2a71a7c72e93 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 4 Mar 2014 01:47:42 +0100 Subject: [PATCH] target_is_present(): remove unreachable code --- libnfc/chips/pn53x.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index 4109602..31c6da7 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -2036,7 +2036,7 @@ pn53x_initiator_target_is_present(struct nfc_device *pnd, const nfc_target *pnt) } // Ping target - int ret; + int ret = NFC_EDEVNOTSUPP; switch (CHIP_DATA(pnd)->current_target->nm.nmt) { case NMT_ISO14443A: if (CHIP_DATA(pnd)->current_target->nti.nai.btSak & 0x20) { @@ -2073,10 +2073,6 @@ pn53x_initiator_target_is_present(struct nfc_device *pnd, const nfc_target *pnt) case NMT_ISO14443B2CT: ret = pn53x_ISO14443B_CT_is_present(pnd); break; - default: - log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "%s", "target_is_present(): card type not supported"); - ret = NFC_EDEVNOTSUPP; - break; } if (ret == NFC_ETGRELEASED) pn53x_current_target_free(pnd);