mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
st/p: Fix prober warning.
This commit is contained in:
parent
1cc80f5476
commit
015abd6899
|
@ -1102,8 +1102,8 @@ p_get_string_descriptor(struct xrt_prober *xp,
|
||||||
XRT_TRACE_MARKER();
|
XRT_TRACE_MARKER();
|
||||||
|
|
||||||
XRT_MAYBE_UNUSED struct prober *p = (struct prober *)xp;
|
XRT_MAYBE_UNUSED struct prober *p = (struct prober *)xp;
|
||||||
XRT_MAYBE_UNUSED struct prober_device *pdev = (struct prober_device *)xpdev;
|
struct prober_device *pdev = (struct prober_device *)xpdev;
|
||||||
XRT_MAYBE_UNUSED int ret;
|
int ret = 0;
|
||||||
#ifdef XRT_HAVE_LIBUSB
|
#ifdef XRT_HAVE_LIBUSB
|
||||||
if (pdev->base.bus == XRT_BUS_TYPE_USB && pdev->usb.dev != NULL) {
|
if (pdev->base.bus == XRT_BUS_TYPE_USB && pdev->usb.dev != NULL) {
|
||||||
ret = p_libusb_get_string_descriptor(p, pdev, which_string, buffer, max_length);
|
ret = p_libusb_get_string_descriptor(p, pdev, which_string, buffer, max_length);
|
||||||
|
|
Loading…
Reference in a new issue