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:
parent
aa91500aee
commit
0fc92370fa
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
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)
|
static int uart_xmc4xxx_init(const struct device *dev)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue