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

View File

@ -130,6 +130,7 @@ static inline void pic32mx_waitstates(void)
nwaits++;
residual -= MAX_FLASH_HZ;
}
DEBUGASSERT(nwaits < 8);
/* Set the FLASH wait states -- clearing all other bits! */

View File

@ -151,7 +151,8 @@ void rtos_stop_running(void)
nuttx_arch_exit();
while(1) {
while (1)
{
arch_hlt();
}
}

View File

@ -204,7 +204,8 @@ 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);
}
}

View File

@ -157,7 +157,9 @@ 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) {
if (selected)
{
while (stm32_gpioread(GPIO_SPI2_MISO) ) up_waste();
}