drivers: Remove redundant semicolon

Remove the redundant semicolon used as a terminator in
`if`, `switch`, `while` statements.

Found using Coccinelle.

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
This commit is contained in:
Himanshu Jha 2018-10-23 11:04:33 +05:30 committed by Anas Nashif
commit d0a98b7cf9
9 changed files with 11 additions and 11 deletions

View file

@ -94,7 +94,7 @@ static inline void ssd1673_busy_wait(struct ssd1673_data *driver)
while (val) {
k_busy_wait(SSD1673_BUSY_DELAY);
gpio_pin_read(driver->busy, CONFIG_SSD1673_BUSY_PIN, &val);
};
}
}
static inline int ssd1673_set_ram_param(struct ssd1673_data *driver,

View file

@ -236,7 +236,7 @@ static inline void sr_bits_set_wait(struct device *dev, u32_t bits)
while (!(cfg->regs->TWI_SR & bits)) {
/* loop till <bits> are set */
};
}
}
/* Clear the status registers from previous transfers */

View file

@ -140,7 +140,7 @@ static int i2c_stm32_transfer(struct device *dev, struct i2c_msg *msg,
current++;
num_msgs--;
};
}
#if defined(CONFIG_I2C_STM32_V1)
LL_I2C_Disable(i2c);
#endif

View file

@ -359,7 +359,7 @@ s32_t stm32_i2c_msg_write(struct device *dev, struct i2c_msg *msg,
return -EIO;
}
};
}
LL_I2C_TransmitData8(i2c, *buf);
buf++;
len--;

View file

@ -122,7 +122,7 @@ int adxl372_trigger_set(struct device *dev,
int_en = int_mask;
} else {
int_en = 0;
};
}
ret = adxl372_reg_write_mask(dev, ADXL372_INT1_MAP, int_mask, int_en);

View file

@ -81,7 +81,7 @@ int lis3mdl_sample_fetch(struct device *dev, enum sensor_channel chan)
(u8_t *)(buf + 3), 2) < 0) {
LOG_DBG("Failed to fetch temperature sample.");
return -EIO;
};
}
drv_data->x_sample = sys_le16_to_cpu(buf[0]);
drv_data->y_sample = sys_le16_to_cpu(buf[1]);

View file

@ -156,7 +156,7 @@ static void qdec_nrfx_event_handler(nrfx_qdec_event_t event)
default:
LOG_ERR("unhandled event (0x%x)", event.type);
break;
};
}
}
static void qdec_nrfx_gpio_ctrl(bool enable)

View file

@ -127,7 +127,7 @@ static int uart_sam_init(struct device *dev)
SOC_ATMEL_SAM_MCK_FREQ_HZ);
if (retval != 0) {
return retval;
};
}
/* Enable receiver and transmitter */
uart->UART_CR = UART_CR_RXEN | UART_CR_TXEN;
@ -200,7 +200,7 @@ static int baudrate_set(Uart *const uart, u32_t baudrate,
if (divisor > 0xFFFF) {
return -EINVAL;
};
}
uart->UART_BRGR = UART_BRGR_CD(divisor);

View file

@ -112,7 +112,7 @@ static int usart_sam_init(struct device *dev)
SOC_ATMEL_SAM_MCK_FREQ_HZ);
if (retval != 0) {
return retval;
};
}
/* Enable receiver and transmitter */
usart->US_CR = US_CR_RXEN | US_CR_TXEN;
@ -186,7 +186,7 @@ static int baudrate_set(Usart *const usart, u32_t baudrate,
if (divisor > 0xFFFF) {
return -EINVAL;
};
}
usart->US_BRGR = US_BRGR_CD(divisor);