Skip to content

Commit

Permalink
target_is_present(): remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Mar 4, 2014
1 parent 6ab3c36 commit 6b74323
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libnfc/chips/pn53x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6b74323

Please sign in to comment.