Blame SOURCES/0131-synaptics-Use-local-variable-rather-than-re-fetching.patch

73b847
From a5db936b44fbfbb9e38a156f05f0b53d7125dad4 Mon Sep 17 00:00:00 2001
73b847
From: Benjamin Berg <bberg@redhat.com>
73b847
Date: Thu, 5 Dec 2019 15:48:57 +0100
73b847
Subject: [PATCH 131/181] synaptics: Use local variable rather than re-fetching
73b847
 usb device
73b847
73b847
---
73b847
 libfprint/drivers/synaptics/synaptics.c | 4 ++--
73b847
 1 file changed, 2 insertions(+), 2 deletions(-)
73b847
73b847
diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c
73b847
index 6ed6791..97d9d21 100644
73b847
--- a/libfprint/drivers/synaptics/synaptics.c
73b847
+++ b/libfprint/drivers/synaptics/synaptics.c
73b847
@@ -969,10 +969,10 @@ dev_probe (FpDevice *device)
73b847
       return;
73b847
     }
73b847
 
73b847
-  if (!g_usb_device_reset (fpi_device_get_usb_device (device), &error))
73b847
+  if (!g_usb_device_reset (usb_dev, &error))
73b847
     goto err_close;
73b847
 
73b847
-  if (!g_usb_device_claim_interface (fpi_device_get_usb_device (device), 0, 0, &error))
73b847
+  if (!g_usb_device_claim_interface (usb_dev, 0, 0, &error))
73b847
     goto err_close;
73b847
 
73b847
   /* TODO: Do not do this synchronous. */
73b847
-- 
73b847
2.24.1
73b847