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:
Philippe Teuwen 2013-09-22 03:36:45 +02:00
parent 2e51318bcb
commit 7cb8fd3833

View file

@ -1220,7 +1220,8 @@ pn53x_initiator_poll_target(struct nfc_device *pnd,
break; break;
} }
} else { } 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 // FIXME It does not support DEP targets
do { do {
for (size_t p = 0; p < uiPollNr; p++) { for (size_t p = 0; p < uiPollNr; p++) {