libfprint/SOURCES/0173-upekts-Remove-unused-argument-from-deinitsm_new.patch
2021-09-09 20:12:48 +00:00

44 lines
1.3 KiB
Diff

From 85d64aada6e339ca667fb6375b2137f091c26416 Mon Sep 17 00:00:00 2001
From: Benjamin Berg <bberg@redhat.com>
Date: Tue, 24 Dec 2019 00:03:14 +0100
Subject: [PATCH 173/181] upekts: Remove unused argument from deinitsm_new
---
libfprint/drivers/upekts.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libfprint/drivers/upekts.c b/libfprint/drivers/upekts.c
index 16534d3..965b3b2 100644
--- a/libfprint/drivers/upekts.c
+++ b/libfprint/drivers/upekts.c
@@ -832,7 +832,7 @@ initsm_done (FpiSsm *ssm, FpDevice *dev, GError *error)
}
static FpiSsm *
-deinitsm_new (FpDevice *dev, void *user_data)
+deinitsm_new (FpDevice *dev)
{
return fpi_ssm_new (dev, deinitsm_state_handler, DEINITSM_NUM_STATES);
}
@@ -988,7 +988,7 @@ static void
do_enroll_stop (FpDevice *dev, FpPrint *print, GError *error)
{
EnrollStopData *data = g_new0 (EnrollStopData, 1);
- FpiSsm *ssm = deinitsm_new (dev, data);
+ FpiSsm *ssm = deinitsm_new (dev);
data->print = g_object_ref (print);
data->error = error;
@@ -1251,7 +1251,7 @@ static void
do_verify_stop (FpDevice *dev, FpiMatchResult res, GError *error)
{
VerifyStopData *data = g_new0 (VerifyStopData, 1);
- FpiSsm *ssm = deinitsm_new (dev, data);
+ FpiSsm *ssm = deinitsm_new (dev);
data->res = res;
data->error = error;
--
2.24.1