drivers: uart_xmc4xxx: Remove unnecessary cast

The compiler will perform an implicit cast from unsigned char to uint16_t.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
This commit is contained in:
Andriy Gelman 2022-05-15 15:54:20 -04:00 committed by Carles Cufí
commit 0fc92370fa

View file

@ -36,7 +36,7 @@ static void uart_xmc4xxx_poll_out(const struct device *dev, unsigned char c)
{
const struct uart_xmc4xx_config *config = dev->config;
XMC_UART_CH_Transmit(config->uart, (uint16_t)c);
XMC_UART_CH_Transmit(config->uart, c);
}
static int uart_xmc4xxx_init(const struct device *dev)