mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-11 17:16:18 +00:00
Remove dead code
The switch case has a default rule and a return in every cases. So the code after the switch will never be executed. Problem reported by thei Coverity tool CID 1090408 (#1 of 1): Structurally dead code (UNREACHABLE)unreachable: This code cannot be reached: "if (pn53x_current_target_ne...".
This commit is contained in:
@@ -1209,9 +1209,6 @@ pn53x_initiator_poll_target(struct nfc_device *pnd,
|
||||
return NFC_ECHIP;
|
||||
break;
|
||||
}
|
||||
if (pn53x_current_target_new(pnd, pnt) == NULL) {
|
||||
return NFC_ESOFT;
|
||||
}
|
||||
} else {
|
||||
pn53x_set_property_bool(pnd, NP_INFINITE_SELECT, true);
|
||||
// FIXME It does not support DEP targets
|
||||
|
||||
Reference in New Issue
Block a user