]> sigrok.org Git - libsigrok.git/commit
usb: re-use existing values, don't re-determine bus and device address
authorGerhard Sittig <redacted>
Mon, 29 Jan 2018 19:36:50 +0000 (20:36 +0100)
committerGerhard Sittig <redacted>
Fri, 9 Feb 2018 20:59:18 +0000 (21:59 +0100)
commit6f63b1ee67ef9a8d9511aec9bac5f9d84c21356d
treefdf3a92b911aeecd1da6c30ba5afd6366e7c055f
parent241c03029d3787497babc6a88d67261b41410044
usb: re-use existing values, don't re-determine bus and device address

Avoid repeated libusb bus number and device address retrieval operations,
instead use variables where the information previously got stored to.
src/usb.c