This is an automated email from Gerrit. Stefan Mahr ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/688
-- gerrit commit eae76cbc783a189ac5ff009311dd9e49be052a30 Author: Stefan Mahr <[email protected]> Date: Thu Jun 7 02:59:18 2012 +0200 whitespace changes Change-Id: I5fef4e7d7c350e77c8d0ab7b4c9170d654f7697e Signed-off-by: Stefan Mahr <[email protected]> diff --git a/src/jtag/drivers/libusb1_common.c b/src/jtag/drivers/libusb1_common.c index 7717043..0296d60 100644 --- a/src/jtag/drivers/libusb1_common.c +++ b/src/jtag/drivers/libusb1_common.c @@ -88,7 +88,7 @@ int jtag_libusb_control_transfer(jtag_libusb_device_handle *dev, uint8_t request transferred = libusb_control_transfer(dev, requestType, request, wValue, wIndex, (unsigned char *)bytes, size, timeout); - if (transferred<0) transferred = 0; + if ( transferred < 0 ) transferred = 0; return transferred; } diff --git a/src/jtag/drivers/opendous.c b/src/jtag/drivers/opendous.c index 4e9799f..9111234 100644 --- a/src/jtag/drivers/opendous.c +++ b/src/jtag/drivers/opendous.c @@ -53,10 +53,10 @@ struct opendous_probe { }; static struct opendous_probe opendous_probes[] = { - {"usbprog-jtag", {0x1781,0}, {0x0C63,0}, 0x82, 0x02, 0x00, 510 }, - {"opendous", {0x1781,0x03EB, 0}, {0xC0C0,0x204F,0}, 0x81, 0x02, 0x00, 360 }, - {"usbvlab", {0x16C0, 0}, {0x05DC,0}, 0x81, 0x02, 0x01, 360 }, - {NULL, {0x0000}, {0x0000}, 0x00, 0x00, 0x00, 0 } + {"usbprog-jtag", {0x1781, 0}, {0x0C63, 0}, 0x82, 0x02, 0x00, 510 }, + {"opendous", {0x1781, 0x03EB, 0}, {0xC0C0, 0x204F, 0}, 0x81, 0x02, 0x00, 360 }, + {"usbvlab", {0x16C0, 0}, {0x05DC, 0}, 0x81, 0x02, 0x01, 360 }, + {NULL, {0x0000}, {0x0000}, 0x00, 0x00, 0x00, 0 } }; #define OPENDOUS_WRITE_ENDPOINT (opendous_probe->WRITE_EP) @@ -410,7 +410,7 @@ static int opendous_init(void) static int opendous_quit(void) { opendous_usb_close(opendous_jtag_handle); - + if (usb_out_buffer) { free(usb_out_buffer); usb_out_buffer = NULL; @@ -420,17 +420,17 @@ static int opendous_quit(void) free(usb_in_buffer); usb_in_buffer = NULL; } - + if (pending_scan_results_buffer) { free(pending_scan_results_buffer); pending_scan_results_buffer = NULL; } - + if (opendous_type) { free(opendous_type); opendous_type = NULL; } - + return ERROR_OK; } @@ -791,7 +791,7 @@ int opendous_usb_write(struct opendous_jtag *opendous_jtag, int out_length) #ifdef _DEBUG_USB_COMMS_ LOG_DEBUG("%s: USB write begin", opendous_get_time(time_str)); #endif - if (opendous_probe->CONTROL_TRANSFER) { + if ( opendous_probe->CONTROL_TRANSFER ) { result = jtag_libusb_control_transfer(opendous_jtag->usb_handle, LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE | LIBUSB_ENDPOINT_OUT, FUNC_WRITE_DATA, 0, 0, (char *) usb_out_buffer, out_length, OPENDOUS_USB_TIMEOUT); @@ -818,7 +818,7 @@ int opendous_usb_read(struct opendous_jtag *opendous_jtag) LOG_DEBUG("%s: USB read begin", opendous_get_time(time_str)); #endif int result; - if (opendous_probe->CONTROL_TRANSFER) { + if ( opendous_probe->CONTROL_TRANSFER ) { result = jtag_libusb_control_transfer(opendous_jtag->usb_handle, LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE | LIBUSB_ENDPOINT_IN, FUNC_READ_DATA, 0, 0, (char *) usb_in_buffer, OPENDOUS_IN_BUFFER_SIZE, OPENDOUS_USB_TIMEOUT); -- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
