target_is_present(): remove unreachable code

This commit is contained in:
Philippe Teuwen 2014-03-04 01:47:42 +01:00
parent 6ab3c368b8
commit 6b74323369

View file

@ -2036,7 +2036,7 @@ pn53x_initiator_target_is_present(struct nfc_device *pnd, const nfc_target *pnt)
} }
// Ping target // Ping target
int ret; int ret = NFC_EDEVNOTSUPP;
switch (CHIP_DATA(pnd)->current_target->nm.nmt) { switch (CHIP_DATA(pnd)->current_target->nm.nmt) {
case NMT_ISO14443A: case NMT_ISO14443A:
if (CHIP_DATA(pnd)->current_target->nti.nai.btSak & 0x20) { 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: case NMT_ISO14443B2CT:
ret = pn53x_ISO14443B_CT_is_present(pnd); ret = pn53x_ISO14443B_CT_is_present(pnd);
break; 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) if (ret == NFC_ETGRELEASED)
pn53x_current_target_free(pnd); pn53x_current_target_free(pnd);