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 8e9734e2ac
commit 23b40f2934
5 changed files with 14 additions and 11 deletions

View File

@ -203,7 +203,7 @@ static void fb_ssd1783_send_cmdlist(const struct ssd1783_cmdlist *p)
{
int i=0;
while(p->is_cmd != END)
while (p->is_cmd != END)
{
uint16_t sendcmd = p->data;
if (p->is_cmd == DATA)

View File

@ -93,7 +93,7 @@ static uint8_t g_line[LCD_NCHARS]; /* The content of lines 2 */
static void up_lcddelay(uint16_t count)
{
uint32_t counter = (uint16_t)count << 8;
while(counter--)
while (counter--)
{
asm("\tnop\n\tnop\n\tnop\n" : :); /* 3 NOPs */
}

View File

@ -357,11 +357,11 @@ static void getfilename(int fd, char *name)
{
ret = readbyte(fd, &ch);
}
while(ch == ' ' && ret == 1);
while (ch == ' ' && ret == 1);
/* Concatenate the filename */
while(ret == 1 && ch > ' ')
while (ret == 1 && ch > ' ')
{
*name++ = ch;
ret = readbyte(fd, &ch);
@ -484,7 +484,7 @@ int main(int argc, char **argv, char **envp)
int oflags;
int ret;
while((opt = getopt(argc, argv, ":dt:b:hl:")) != -1)
while ((opt = getopt(argc, argv, ":dt:b:hl:")) != -1)
{
switch(opt)
{

View File

@ -204,9 +204,10 @@ struct vsn_sif_s vsn_sif;
void sif_sem_wait(void)
{
while( sem_wait( &vsn_sif.exclusive_access ) != 0 ) {
while (sem_wait( &vsn_sif.exclusive_access ) != 0)
{
ASSERT(errno == EINTR);
}
}
}
@ -688,7 +689,7 @@ int sif_main(int argc, char *argv[])
cc1101_setchannel(cc, 0); /* AV Test Hex, receive on that channel */
cc1101_receive(cc); /* Enter RX mode */
while(1)
while (1)
{
fflush(stdout);
sta = cc1101_read(cc, buf, 64);

View File

@ -157,9 +157,11 @@ void stm32_spi2select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool sele
stm32_gpiowrite(GPIO_CC1101_CS, !selected);
/* Wait for MISO to go low, indicates that Quart has stabilized */
if (selected) {
while( stm32_gpioread(GPIO_SPI2_MISO) ) up_waste();
}
if (selected)
{
while (stm32_gpioread(GPIO_SPI2_MISO) ) up_waste();
}
}
}