From 7d0956513bcaa98205f5483e6375f83300450eab Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Mon, 30 Nov 2020 19:17:11 +0100 Subject: [PATCH] upekts: Remove duplicated err handling path Closes: #342 --- libfprint/drivers/upekts.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libfprint/drivers/upekts.c b/libfprint/drivers/upekts.c index 824e5d1..3471cf7 100644 --- a/libfprint/drivers/upekts.c +++ b/libfprint/drivers/upekts.c @@ -527,15 +527,6 @@ initsm_read_msg_response_cb (FpiSsm *ssm, fpi_device_error_new_msg (FP_DEVICE_ERROR_PROTO, "Unexpected response subcommand")); } - else if (seq != upekdev->seq) - { - fp_err ("expected response to cmd seq=%02x, got response to %02x " - "in state %d", upekdev->seq, seq, - fpi_ssm_get_cur_state (ssm)); - fpi_ssm_mark_failed (ssm, - fpi_device_error_new_msg (FP_DEVICE_ERROR_PROTO, - "Unexpected sequence number in response")); - } else { fpi_ssm_next_state (ssm);