synaptics: Report a verify complete error on unexpected result

Also remove the unneeded verify report with match failure
This commit is contained in:
Marco Trevisan (Treviño) 2020-01-16 19:47:45 +01:00 committed by Marco Trevisan
parent 8be861b876
commit 7a7bec5a80

View file

@ -632,8 +632,10 @@ verify_msg_cb (FpiDeviceSynaptics *self,
else
{
fp_warn ("Verify has failed: %d", resp->result);
fpi_device_verify_report (device, FPI_MATCH_FAIL, NULL, NULL);
fpi_device_verify_complete (device, NULL);
fpi_device_verify_complete (device,
fpi_device_error_new_msg (FP_DEVICE_ERROR_PROTO,
"Unexpected result from device %d",
resp->result));
}
break;