Remove libusb_device field

It is possible to retrieve the device instance from the handle via
libusb_get_device(), so we don't need to reference the device one more
time.

PR #2974 <https://github.com/Genymobile/scrcpy/pull/2974>
This commit is contained in:
Romain Vimont
2022-01-27 23:36:00 +01:00
parent adda47b0f7
commit b779eca8d3
2 changed files with 4 additions and 6 deletions
-1
View File
@@ -8,7 +8,6 @@
struct sc_usb {
libusb_context *context;
libusb_device *device;
libusb_device_handle *handle;
};