Make sure that there is one space between while and condition

This commit is contained in:
Gregory Nutt
2014-04-12 13:09:48 -06:00
parent 303cc1902b
commit 056aed1274
35 changed files with 59 additions and 54 deletions
+2 -2
View File
@@ -626,7 +626,7 @@ static void * cc3000_worker(FAR void *arg)
/* We have started release our creator*/
sem_post(&priv->readysem);
while(1)
while (1)
{
PROBE(0,1);
CHECK_GUARD(priv);
@@ -741,7 +741,7 @@ static void * cc3000_worker(FAR void *arg)
} /* end if */
cc3000_devgive(priv);
} /* while(1) */
} /* while (1) */
return OK;
}
+1 -1
View File
@@ -209,7 +209,7 @@ static void *unsoliced_thread_func(void *parameter)
spiconf.done = sem_open(buff,O_RDONLY);
DEBUGASSERT(spiconf.done != (sem_t *)-1);
while(spiconf.run)
while (spiconf.run)
{
memset(&spiconf.rx_buffer,0,sizeof(spiconf.rx_buffer));
nbytes = mq_receive(spiconf.queue, &spiconf.rx_buffer,
+2 -2
View File
@@ -938,7 +938,7 @@ void SimpleLinkWaitEvent(uint16_t usOpcode, void *pRetParams)
hci_event_handler(pRetParams, 0, 0);
}
}
while(tSLInformation.usRxEventOpcode != 0);
while (tSLInformation.usRxEventOpcode != 0);
nllvdbg("Done for usOpcode 0x%x\n",usOpcode);
}
@@ -996,7 +996,7 @@ void SimpleLinkWaitData(uint8_t *pBuf, uint8_t *from, uint8_t *fromlen)
}
}
}
while(*tSLInformation.pucReceivedData == HCI_TYPE_EVNT);
while (*tSLInformation.pucReceivedData == HCI_TYPE_EVNT);
nllvdbg("Done for Data 0x%x\n",usOpcode);
}
+2 -2
View File
@@ -82,7 +82,7 @@
#endif
#ifdef CONFIG_WL_NRF24L01_CHECK_PARAMS
# define CHECK_ARGS(cond) do { if (!(cond)) return -EINVAL; } while(0)
# define CHECK_ARGS(cond) do { if (!(cond)) return -EINVAL; } while (0)
#else
# define CHECK_ARGS(cond)
#endif
@@ -1719,7 +1719,7 @@ ssize_t nrf24l01_recv(struct nrf24l01_dev_s *dev, uint8_t *buffer,
static void binarycvt(char *deststr, const uint8_t *srcbin, size_t srclen)
{
int i = 0;
while(i < srclen)
while (i < srclen)
{
sprintf(deststr + i*2, "%02x", srcbin[i]);
++i;