Remove whitespace that occurs after '('.
- Replace '([ \t]*' with '('.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2376 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -39,11 +39,11 @@
|
||||
#define DTC_CMD_SHIFT_TDIO_BYTES(bytes) ((0x6 << 4) | ((bytes) - 1))
|
||||
/* Shift 1-16 bytes out TDI and in TDO. TMS is unaffected. */
|
||||
|
||||
#define DTC_CMD_SHIFT_TMS_TDI_BIT_PAIR(tms, tdi, tdo) ((0x8 << 4) | ( \
|
||||
#define DTC_CMD_SHIFT_TMS_TDI_BIT_PAIR(tms, tdi, tdo) ((0x8 << 4) | (\
|
||||
(tms) ? (1 << 0) : 0 \
|
||||
) | ( \
|
||||
) | (\
|
||||
(tdi) ? (1 << 1) : 0 \
|
||||
) | ( \
|
||||
) | (\
|
||||
(tdo) ? (1 << 3) : 0 \
|
||||
))
|
||||
/* Single bit shift. */
|
||||
|
||||
@@ -1636,26 +1636,26 @@ int rlink_init(void)
|
||||
|
||||
for (dev = bus->devices; dev; dev = dev->next)
|
||||
{
|
||||
if ( (dev->descriptor.idVendor == USB_IDVENDOR) && (dev->descriptor.idProduct == USB_IDPRODUCT) )
|
||||
if ((dev->descriptor.idVendor == USB_IDVENDOR) && (dev->descriptor.idProduct == USB_IDPRODUCT) )
|
||||
{
|
||||
found = 1;
|
||||
LOG_DEBUG("Found device on bus.\n");
|
||||
|
||||
do
|
||||
{
|
||||
if ( dev->descriptor.bNumConfigurations > 1 )
|
||||
if (dev->descriptor.bNumConfigurations > 1 )
|
||||
{
|
||||
LOG_ERROR("Whoops! NumConfigurations is not 1, don't know what to do...\n");
|
||||
break;
|
||||
}
|
||||
if ( dev->config->bNumInterfaces > 1 )
|
||||
if (dev->config->bNumInterfaces > 1 )
|
||||
{
|
||||
LOG_ERROR("Whoops! NumInterfaces is not 1, don't know what to do...\n");
|
||||
break;
|
||||
}
|
||||
|
||||
pHDev = usb_open(dev);
|
||||
if ( !pHDev )
|
||||
if (!pHDev )
|
||||
LOG_ERROR ("Failed to open device.\n");
|
||||
else
|
||||
{
|
||||
@@ -1686,7 +1686,7 @@ int rlink_init(void)
|
||||
|
||||
if (!i)
|
||||
{
|
||||
if ( usb_set_altinterface(pHDev,0) )
|
||||
if (usb_set_altinterface(pHDev,0) )
|
||||
{
|
||||
LOG_ERROR("Failed to set interface.\n");
|
||||
break;
|
||||
@@ -1700,13 +1700,13 @@ int rlink_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
if ( !found )
|
||||
if (!found )
|
||||
{
|
||||
LOG_ERROR("No device found on bus.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if ( !success )
|
||||
if (!success )
|
||||
{
|
||||
LOG_ERROR("Initialisation failed.");
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user