verify return of pn53x_set_property_bool()
Problem reported by Coverity: CID 1090321 (#1 of 1): Unchecked return value (CHECKED_RETURN) unchecked_value: No check of the return value of "pn53x_set_property_bool(pnd, NP_INFINITE_SELECT, true)".
This commit is contained in:
parent
2e51318bcb
commit
7cb8fd3833
1 changed files with 2 additions and 1 deletions
|
@ -1220,7 +1220,8 @@ pn53x_initiator_poll_target(struct nfc_device *pnd,
|
|||
break;
|
||||
}
|
||||
} else {
|
||||
pn53x_set_property_bool(pnd, NP_INFINITE_SELECT, true);
|
||||
if ((res = pn53x_set_property_bool(pnd, NP_INFINITE_SELECT, true)) < 0)
|
||||
return res;
|
||||
// FIXME It does not support DEP targets
|
||||
do {
|
||||
for (size_t p = 0; p < uiPollNr; p++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue