Skip to content

Commit 1344979

Browse files
committed
usbtest: fix usbtest compilation error by an unused variable
Approved by: lwhsu (mentor), markj (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D51867
1 parent aef16fc commit 1344979

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tools/tools/usbtest/usb_msc_test.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,6 @@ find_usb_endpoints(struct libusb20_device *pdev, uint8_t class,
952952
struct libusb20_interface *iface;
953953
struct libusb20_endpoint *ep;
954954
uint8_t x;
955-
uint8_t y;
956955
uint8_t z;
957956

958957
*in_ep = 0;
@@ -966,9 +965,6 @@ find_usb_endpoints(struct libusb20_device *pdev, uint8_t class,
966965
return;
967966

968967
for (x = 0; x != pcfg->num_interface; x++) {
969-
970-
y = alt_setting;
971-
972968
iface = (pcfg->interface + x);
973969

974970
if ((iface->desc.bInterfaceClass == class) &&

0 commit comments

Comments
 (0)