acr122s_scan should not return -1 if of type size_t

This commit is contained in:
Philippe Teuwen 2013-09-19 23:39:03 +02:00
parent 3d040d73f3
commit 9240770ab1

View file

@ -440,7 +440,7 @@ acr122s_scan(const nfc_context *context, nfc_connstring connstrings[], const siz
free((void *)acPort);
}
free(acPorts);
return -1;
return 0;
}
pnd->driver = &acr122s_driver;
@ -454,7 +454,7 @@ acr122s_scan(const nfc_context *context, nfc_connstring connstrings[], const siz
free((void *)acPort);
}
free(acPorts);
return -1;
return 0;
}
DRIVER_DATA(pnd)->port = sp;
DRIVER_DATA(pnd)->seq = 0;