mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
synaptics: Return success when deleting a print that doesn't exist in
the database or database empty
This commit is contained in:
committed by
Benjamin Berg
parent
040d0d34fd
commit
49e3963783
@@ -993,13 +993,18 @@ delete_msg_cb (FpiDeviceSynaptics *self,
|
||||
break;
|
||||
|
||||
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)
|
||||
fpi_device_delete_complete (device,
|
||||
fpi_device_error_new (FP_DEVICE_ERROR_DATA_NOT_FOUND));
|
||||
if (resp->result == BMKT_FP_DATABASE_NO_RECORD_EXISTS ||
|
||||
resp->result == BMKT_FP_DATABASE_EMPTY)
|
||||
{
|
||||
fp_info ("Database no record");
|
||||
fpi_device_delete_complete (device, NULL);
|
||||
}
|
||||
else
|
||||
fpi_device_delete_complete (device,
|
||||
fpi_device_error_new (FP_DEVICE_ERROR_GENERAL));
|
||||
{
|
||||
fp_info ("Failed to delete enrolled user: %d", resp->result);
|
||||
fpi_device_delete_complete (device,
|
||||
fpi_device_error_new (FP_DEVICE_ERROR_GENERAL));
|
||||
}
|
||||
break;
|
||||
|
||||
case BMKT_RSP_DEL_USER_FP_OK:
|
||||
|
||||
Reference in New Issue
Block a user