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