]> git.sur5r.net Git - openocd/commitdiff
Fix typo that result in recursion.
authorMathias K <kesmtp@freenet.de>
Thu, 16 Feb 2012 17:00:07 +0000 (18:00 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Thu, 16 Feb 2012 17:19:57 +0000 (17:19 +0000)
Change-Id: Ie1102b4960bcb5acb254eae69b94fe87ab33dd0b
Signed-off-by: Mathias K <kesmtp@freenet.de>
Reviewed-on: http://openocd.zylin.com/462
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/libusb0_common.c
src/jtag/drivers/libusb1_common.c

index 9f6cec756e119cdd98be0644d71a8c25e18a4f47..c731ee54526f484a5fbab398feaade22ecb8e697 100644 (file)
@@ -64,7 +64,7 @@ int jtag_libusb_open(const uint16_t vids[], const uint16_t pids[],
 void jtag_libusb_close(jtag_libusb_device_handle *dev)
 {
        /* Close device */
-       jtag_libusb_close(dev);
+       usb_close(dev);
 }
 
 int jtag_libusb_bulk_write(jtag_libusb_device_handle *dev, int ep, char *bytes,
index dcca8d1c7d74696aec108ca4e0a0e2ba17647867..194f737cde3a9f87955b2ec594d85765e3c6051c 100644 (file)
@@ -74,7 +74,7 @@ int jtag_libusb_open(const uint16_t vids[], const uint16_t pids[],
 void jtag_libusb_close(jtag_libusb_device_handle *dev)
 {
        /* Close device */
-       jtag_libusb_close(dev);
+       libusb_close(dev);
 
        libusb_exit(jtag_libusb_context);
 }