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:
parent
3a8db49a83
commit
967f6e5623
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue