serial: Change poll_out signature
poll_out function was returning the character that was sent. It happens that it is always constant and the return of this functions is never tested. Changing it to be a void function. MISRA-C rule 17.7 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
2b1d54e897
commit
98d03266f1
30 changed files with 37 additions and 106 deletions
|
@ -50,7 +50,7 @@ static int uart_stm32_poll_in(struct device *dev, unsigned char *c)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static unsigned char uart_stm32_poll_out(struct device *dev,
|
||||
static void uart_stm32_poll_out(struct device *dev,
|
||||
unsigned char c)
|
||||
{
|
||||
USART_TypeDef *UartInstance = UART_STRUCT(dev);
|
||||
|
@ -62,8 +62,6 @@ static unsigned char uart_stm32_poll_out(struct device *dev,
|
|||
LL_USART_ClearFlag_TC(UartInstance);
|
||||
|
||||
LL_USART_TransmitData8(UartInstance, (u8_t)c);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
static inline void __uart_stm32_get_clock(struct device *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue