synaptics: Return success when deleting a print that doesn't exist in
the database or database empty
This commit is contained in:
parent
040d0d34fd
commit
49e3963783
1 changed files with 11 additions and 6 deletions
|
@ -993,13 +993,18 @@ delete_msg_cb (FpiDeviceSynaptics *self,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BMKT_RSP_DEL_USER_FP_FAIL:
|
case BMKT_RSP_DEL_USER_FP_FAIL:
|
||||||
fp_info ("Failed to delete enrolled user: %d", resp->result);
|
if (resp->result == BMKT_FP_DATABASE_NO_RECORD_EXISTS ||
|
||||||
if (resp->result == BMKT_FP_DATABASE_NO_RECORD_EXISTS)
|
resp->result == BMKT_FP_DATABASE_EMPTY)
|
||||||
fpi_device_delete_complete (device,
|
{
|
||||||
fpi_device_error_new (FP_DEVICE_ERROR_DATA_NOT_FOUND));
|
fp_info ("Database no record");
|
||||||
|
fpi_device_delete_complete (device, NULL);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
fp_info ("Failed to delete enrolled user: %d", resp->result);
|
||||||
fpi_device_delete_complete (device,
|
fpi_device_delete_complete (device,
|
||||||
fpi_device_error_new (FP_DEVICE_ERROR_GENERAL));
|
fpi_device_error_new (FP_DEVICE_ERROR_GENERAL));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BMKT_RSP_DEL_USER_FP_OK:
|
case BMKT_RSP_DEL_USER_FP_OK:
|
||||||
|
|
Loading…
Reference in a new issue