From 7a7bec5a8059f73e985d183818606cd3976e3e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 16 Jan 2020 19:47:45 +0100 Subject: [PATCH] synaptics: Report a verify complete error on unexpected result Also remove the unneeded verify report with match failure --- libfprint/drivers/synaptics/synaptics.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c index 46641a3b..c7fbe35b 100644 --- a/libfprint/drivers/synaptics/synaptics.c +++ b/libfprint/drivers/synaptics/synaptics.c @@ -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;