From: Mathias K Date: Thu, 16 Feb 2012 17:00:07 +0000 (+0100) Subject: Fix typo that result in recursion. X-Git-Tag: v0.6.0-rc1~232 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d8b912755d3d47419584b51186b77dc48c5fee23;p=openocd Fix typo that result in recursion. Change-Id: Ie1102b4960bcb5acb254eae69b94fe87ab33dd0b Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/462 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/src/jtag/drivers/libusb0_common.c b/src/jtag/drivers/libusb0_common.c index 9f6cec75..c731ee54 100644 --- a/src/jtag/drivers/libusb0_common.c +++ b/src/jtag/drivers/libusb0_common.c @@ -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, diff --git a/src/jtag/drivers/libusb1_common.c b/src/jtag/drivers/libusb1_common.c index dcca8d1c..194f737c 100644 --- a/src/jtag/drivers/libusb1_common.c +++ b/src/jtag/drivers/libusb1_common.c @@ -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); }