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
|
@ -33,7 +33,9 @@ Z_SYSCALL_HANDLER(uart_poll_in, dev, p_char)
|
|||
Z_SYSCALL_HANDLER(uart_poll_out, dev, out_char)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_UART(dev, poll_out));
|
||||
return _impl_uart_poll_out((struct device *)dev, out_char);
|
||||
_impl_uart_poll_out((struct device *)dev, out_char);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue