From 445d46fb6f1f29cb344f4db42b4d905f1042ea42 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Wed, 12 Jun 2019 13:42:13 +0200 Subject: [PATCH] fixup! Simplify Synaptics driver Remove unused variables in synaptics.c --- libfprint/drivers/synaptics/synaptics.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c index 7a26679..d9c299c 100644 --- a/libfprint/drivers/synaptics/synaptics.c +++ b/libfprint/drivers/synaptics/synaptics.c @@ -164,7 +164,6 @@ static int dev_init(struct fp_dev *dev, unsigned long driver_data) { synaptics_dev *sdev = NULL; int result = 0, ret = 0; - libusb_device *udev = libusb_get_device(fpi_dev_get_usb_dev(dev)); fp_info("%s ", __func__); @@ -338,7 +337,7 @@ static int enroll_start(struct fp_dev *dev) static int enroll_stop(struct fp_dev *dev) { fp_info("syna enroll stop"); - int ret; + synaptics_dev *sdev = FP_INSTANCE_DATA(dev); sdev->state = SYNA_STATE_IDLE; fpi_drvcb_enroll_stopped(dev); @@ -479,7 +478,7 @@ cleanup: static int verify_stop(struct fp_dev *dev, gboolean iterating) { fp_info("syna verify_stop"); - int ret; + synaptics_dev *sdev = FP_INSTANCE_DATA(dev); sdev->state = SYNA_STATE_IDLE; fpi_drvcb_verify_stopped(dev);